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.
173 |
# File 'lib/puppet_x/bodeco/util.rb', line 173 def initialize(_url, ) 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 |