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.



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

def initialize(_url, _options) end

Instance Method Details

#download(uri, file_path) ⇒ Object



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

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