class Hotdog::Commands::Sftp

Private Instance Methods

build_command_string(host, command=nil, options={}) click to toggle source
# File lib/hotdog/commands/sftp.rb, line 11
def build_command_string(host, command=nil, options={})
  cmdline = Shellwords.shellsplit(options.fetch(:sftp_command, "sftp")) + build_command_options(options) + [host]
  if command
    logger.warn("ignore remote command: #{command}")
  end
  Shellwords.join(cmdline)
end