Class/Module Index [+]

Quicksearch

Ironfan::KnifeCommon::ClassMethods

Public Instance Methods

import_banner_and_options(klass, options={}) click to toggle source
# File lib/chef/knife/ironfan_knife_common.rb, line 223
def import_banner_and_options(klass, options={})
  options[:except] ||= []
  deps{ klass.load_deps }
  klass.options.sort.each do |name, info|
    next if options.include?(name) || options[:except].include?(name)
    option name, info
  end
  options[:description] ||= "#{sub_command} all servers described by given cluster slice"
  banner "knife cluster #{"%-11s" % sub_command} CLUSTER[-FACET[-INDEXES]] (options) - #{options[:description]}"
end
sub_command() click to toggle source
# File lib/chef/knife/ironfan_knife_common.rb, line 219
def sub_command
  self.to_s.gsub(/^.*::/, '').gsub(/^Cluster/, '').downcase
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.