lib/chef/knife/spork-info.rb in knife-spork-1.7.2 vs lib/chef/knife/spork-info.rb in knife-spork-1.7.3
- old
+ new
@@ -1,34 +1,34 @@
-require 'chef/knife'
-require 'yaml'
-
-module KnifeSpork
- class SporkInfo < Chef::Knife
-
- deps do
- require 'knife-spork/runner'
- end
-
- banner 'knife spork info'
-
- def run
- self.class.send(:include, KnifeSpork::Runner)
- self.config = Chef::Config.merge!(config)
-
- run_plugins(:before_info)
- info
- run_plugins(:after_info)
- end
-
- private
- def info
- ui.msg "Config Hash:"
- ui.msg spork_config.to_yaml
- ui.msg ""
- ui.msg "Plugins:"
- KnifeSpork::Plugins.klasses.each do |klass|
- plugin = klass.new(:config => spork_config)
- ui.msg "#{klass}: #{plugin.enabled? ? 'enabled' : 'disabled'}"
- end
- end
- end
-end
+require 'chef/knife'
+require 'yaml'
+
+module KnifeSpork
+ class SporkInfo < Chef::Knife
+
+ deps do
+ require 'knife-spork/runner'
+ end
+
+ banner 'knife spork info'
+
+ def run
+ self.class.send(:include, KnifeSpork::Runner)
+ self.config = Chef::Config.merge!(config)
+
+ run_plugins(:before_info)
+ info
+ run_plugins(:after_info)
+ end
+
+ private
+ def info
+ ui.msg "Config Hash:"
+ ui.msg spork_config.to_yaml
+ ui.msg ""
+ ui.msg "Plugins:"
+ KnifeSpork::Plugins.klasses.each do |klass|
+ plugin = klass.new(:config => spork_config)
+ ui.msg "#{klass}: #{plugin.enabled? ? 'enabled' : 'disabled'}"
+ end
+ end
+ end
+end