Class: Chef::Fork::Commands::Data

Inherits:
Noop
  • Object
show all
Defined in:
lib/chef/fork/commands/data.rb

Direct Known Subclasses

Databag

Instance Method Summary collapse

Methods inherited from Noop

#initialize

Constructor Details

This class inherits a constructor from Chef::Fork::Commands::Noop

Instance Method Details

#run(args = []) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/chef/fork/commands/data.rb', line 13

def run(args=[])
  rest = order_args(args)
  case rest.first
  when "bag"
    data_bag(rest.slice(1..-1) || [])
  else
    raise(NameError.new(rest.inspect))
  end
end