Sha256: 837f1e2995b471edfbdef093b50159faa7d64d92b0f48389418fca429e4681f7
Contents?: true
Size: 570 Bytes
Versions: 3
Compression:
Stored size: 570 Bytes
Contents
module Frank module Publish #TODO class ShellSCP def self.shell_copy(local_dir, remote_dir, options) host = [] command = ["scp "] command << "-P #{options[:port]} " if options[:port] command << "-r #{local_dir}/* " host << "#{options[:username]}" if options[:username] host << ":#{options[:password]}" if options[:password] host << "@#{options[:host]}:#{remote_dir}" shell_command = "#{command.join('')}#{host.join('')}" system(shell_command) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
frank-1.0.12 | lib/frank/publish/shell_scp.rb |
frank-1.0.11 | lib/frank/publish/shell_scp.rb |
frank-1.0.10 | lib/frank/publish/shell_scp.rb |