Class: KnifeSpork::Plugins::Jabber

Inherits:
Plugin
  • Object
show all
Defined in:
lib/knife-spork/plugins/jabber.rb

Instance Method Summary collapse

Methods inherited from Plugin

#enabled?, hook, hooks, #initialize, name

Constructor Details

This class inherits a constructor from KnifeSpork::Plugins::Plugin

Instance Method Details

#after_promote_remoteObject



14
15
16
# File 'lib/knife-spork/plugins/jabber.rb', line 14

def after_promote_remote
  jabber "#{organization}#{current_user} promoted the following cookbooks:\n#{cookbooks.collect{ |c| "  #{c.name}@#{c.version}" }.join("\n")} to #{environments.collect{ |e| "#{e.name}" }.join(", ")}"
end

#after_uploadObject



10
11
12
# File 'lib/knife-spork/plugins/jabber.rb', line 10

def after_upload
  jabber "#{organization}#{current_user} uploaded the following cookbooks:\n#{cookbooks.collect{ |c| "  #{c.name}@#{c.version}" }.join("\n")}"
end

#performObject



8
# File 'lib/knife-spork/plugins/jabber.rb', line 8

def perform; end