Class: Specinfra::Backend::Exec

Inherits:
Base
  • Object
show all
Defined in:
lib/itamae/ext/specinfra.rb

Direct Known Subclasses

Docker, Ssh

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