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.



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

def initialize(_url, _options) end

Instance Method Details

#download(uri, file_path) ⇒ Object



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

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