Module: ClusterChef::KnifeCommon::ClassMethods
- Defined in:
- lib/chef/knife/knife_common.rb
Instance Method Summary collapse
Instance Method Details
#import_banner_and_options(klass, options = {}) ⇒ Object
179 180 181 182 183 184 185 186 187 |
# File 'lib/chef/knife/knife_common.rb', line 179 def (klass, ={}) [:except] ||= [] deps{ klass.load_deps } klass..sort.each do |name, info| next if .include?(name) || [:except].include?(name) option name, info end "knife cluster #{sub_command} CLUSTER_NAME [FACET_NAME [INDEXES]] (options)" end |
#sub_command ⇒ Object
175 176 177 |
# File 'lib/chef/knife/knife_common.rb', line 175 def sub_command self.to_s.gsub(/^.*::/, '').gsub(/^Cluster/, '').downcase end |