class Specinfra::Backend::Exec

Public Instance Methods

receive_file(from, to = nil) click to toggle source
# 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