lib/koma/cli.rb in koma-0.10.0 vs lib/koma/cli.rb in koma-0.10.1
- old
+ new
@@ -37,10 +37,10 @@
desc 'run-command <host1,host2,..> <command>', 'run command on a remote machine'
option :yaml, type: :boolean, desc: 'stdout YAML', aliases: :Y
option :identity_file, type: :string, banner: '<identity_file>', desc: 'identity file', aliases: :i
option :port, type: :numeric, banner: '<port>', desc: 'port', aliases: :p
def run_command(host = nil, command = nil)
- if stdin.nil?
+ if host.nil?
STDERR.puts 'ERROR: "koma run-command" was called with no arguments'
STDERR.puts 'Usage: "koma run-command <host1,host2,..> <command>"'
return
end
if command.nil?