Class: PuppetX::Bodeco::FILE
- Inherits:
-
Object
- Object
- PuppetX::Bodeco::FILE
- Defined in:
- lib/puppet_x/bodeco/util.rb
Instance Method Summary collapse
- #download(uri, file_path) ⇒ Object
-
#initialize(_url, _options) ⇒ FILE
constructor
A new instance of FILE.
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, ) 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 |