Module: KnifeSolo::DeprecatedCommand
- Included in:
- Chef::Knife::Cook, Chef::Knife::Kitchen, Chef::Knife::Prepare, Chef::Knife::WashUp
- Defined in:
- lib/knife-solo/deprecated_command.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(other) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/knife-solo/deprecated_command.rb', line 4 def self.included(other) other.class_eval do def self.deprecated "`knife #{common_name}` is deprecated! Please use:\n #{superclass.}" end deprecated self. = superclass. def self.load_deps superclass.load_deps end end end |
Instance Method Details
#run ⇒ Object
19 20 21 22 |
# File 'lib/knife-solo/deprecated_command.rb', line 19 def run ui.warn self.class.deprecated super end |