Method: Capsaicin::Files::Remote#put

Defined in:
lib/capsaicin/files/remote.rb

#put(data, path, options = {}) ⇒ Object



59
60
61
62
63
64
65
66
# File 'lib/capsaicin/files/remote.rb', line 59

def put(data, path, options={})
  case _via
  when :system, :local_run
    FileUtils::Verbose.copy_stream StringIO.new(from), to
  else
    upload StringIO.new(data), path, options
  end
end