Class: Specinfra::Backend::Exec
- Defined in:
- lib/itamae/ext/specinfra.rb
Instance Method Summary collapse
Instance Method Details
#receive_file(from, to = nil) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/itamae/ext/specinfra.rb', line 12 def receive_file(from, to = nil) if to FileUtils.cp(from, to) else ::File.read(from) end end |