Class: PuppetX::Bodeco::FILE

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet_x/bodeco/util.rb

Instance Method Summary collapse

Constructor Details

#initialize(_url, _options) ⇒ FILE

Returns a new instance of FILE.



177
# File 'lib/puppet_x/bodeco/util.rb', line 177

def initialize(_url, _options) end

Instance Method Details

#download(uri, file_path) ⇒ Object



179
180
181
# File 'lib/puppet_x/bodeco/util.rb', line 179

def download(uri, file_path)
  FileUtils.copy(uri.path, file_path)
end