Class: KnifeWip::Plugin
- Inherits:
-
Object
- Object
- KnifeWip::Plugin
- Includes:
- Helpers
- Defined in:
- lib/chef/knife/knife-wip.rb
Overview
Public: class to inherit from for plugins. Basically a cheap hack to get some control over whether or not a plugin implements the correct methods
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(config) ⇒ Plugin
constructor
A new instance of Plugin.
- #wip_start(user, tag, node) ⇒ Object
- #wip_stop(user, tag, node) ⇒ Object
Methods included from Helpers
#app_config, #cookbook_path, #ensure_cookbook_path!, #load_plugins
Constructor Details
#initialize(config) ⇒ Plugin
Returns a new instance of Plugin.
81 82 83 |
# File 'lib/chef/knife/knife-wip.rb', line 81 def initialize(config) @config = config end |
Instance Method Details
#wip_start(user, tag, node) ⇒ Object
85 86 87 88 |
# File 'lib/chef/knife/knife-wip.rb', line 85 def wip_start(user, tag, node) ui.warn "Warning: #{self.class} doesn't implement the 'wip_start' method." ui.warn "No announcements performed for #{self.class}" end |
#wip_stop(user, tag, node) ⇒ Object
90 91 92 93 |
# File 'lib/chef/knife/knife-wip.rb', line 90 def wip_stop(user, tag, node) ui.warn "Warning: #{self.class} doesn't implement the 'wip_stop' method." ui.warn "No announcements performed for #{self.class}" end |