Class: KnifeWip::Plugins::Eventinator
- Inherits:
-
KnifeWip::Plugin
- Object
- KnifeWip::Plugin
- KnifeWip::Plugins::Eventinator
- Defined in:
- lib/knife-wip/plugins/eventinator.rb
Instance Method Summary collapse
Methods inherited from KnifeWip::Plugin
Methods included from Helpers
#app_config, #cookbook_path, #ensure_cookbook_path!, #load_plugins
Constructor Details
This class inherits a constructor from KnifeWip::Plugin
Instance Method Details
#wip_start(user, tag, node) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/knife-wip/plugins/eventinator.rb', line 7 def wip_start(user, tag, node) event_data = { :tag => 'knife', :username => user, :status => "#{user} started work '#{tag}' on #{node}", :metadata => { :node_name => node, :tag => tag }.to_json } eventinate(event_data) end |
#wip_stop(user, tag, node) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/knife-wip/plugins/eventinator.rb', line 20 def wip_stop(user, tag, node) event_data = { :tag => 'knife', :username => user, :status => "#{user} stopped work '#{tag}' on #{node}", :metadata => { :node_name => node, :tag => tag }.to_json } eventinate(event_data) end |