Module: Mothership::Help

Defined in:
lib/appfog-vmc-plugin/help.rb

Class Method Summary collapse

Class Method Details

.insert_group(name, args) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/appfog-vmc-plugin/help.rb', line 6

def insert_group(name, args)
  index = 0
  @@tree.each_with_index do |(key, value), i|
    index = i
    break if key == name
  end
  add_group(@@groups[index][:children], @@tree[name][:children], *args)
end