Class: Bosh::Director::Api::ApiHelper::DisposableFile

Inherits:
Rack::File
  • Object
show all
Defined in:
lib/bosh/director/api/api_helper.rb

Instance Method Summary collapse

Instance Method Details

#closeObject



11
12
13
# File 'lib/bosh/director/api/api_helper.rb', line 11

def close
  FileUtils.rm_rf(self.path) if File.exists?(self.path)
end