lib/chef/fork/commands/ssh.rb in chef-fork-0.1.2 vs lib/chef/fork/commands/ssh.rb in chef-fork-0.1.3
- old
+ new
@@ -7,10 +7,11 @@
class Chef
class Fork
module Commands
class Ssh < Noop
def run(args=[])
- rest = optparse.order(args)
+ rest = order_args(args)
+ rest = rest.dup
if hostname = rest.shift
ssh(hostname, rest)
end
end