lib/chef/fork/commands/node.rb in chef-fork-0.1.2 vs lib/chef/fork/commands/node.rb in chef-fork-0.1.3
- old
+ new
@@ -8,19 +8,19 @@
class Chef
class Fork
module Commands
class Node < Noop
def run(args=[])
- rest = optparse.order(args)
+ rest = order_args(args)
case rest.first
when "edit"
node_edit(rest.slice(1..-1) || [])
when "list"
node_list(rest.slice(1..-1) || [])
when "show"
node_show(rest.slice(1..-1) || [])
else
- raise(NameError.new(rest.inspect))
+ raise(NameError.new(@args.inspect))
end
end
private
def node_edit(args=[])