Class: KnifeSpork::Plugins::HipChat

Inherits:
Plugin
  • Object
show all
Defined in:
lib/knife-spork/plugins/hipchat.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_databagcreateObject



54
55
56
# File 'lib/knife-spork/plugins/hipchat.rb', line 54

def after_databagcreate
  hipchat "#{organization}#{current_user} created data bag #{object_name}"
end

#after_databagdeleteObject



58
59
60
# File 'lib/knife-spork/plugins/hipchat.rb', line 58

def after_databagdelete
  hipchat "#{organization}#{current_user} deleted data bag item #{object_name}"
end

#after_databageditObject



50
51
52
# File 'lib/knife-spork/plugins/hipchat.rb', line 50

def after_databagedit
  hipchat "#{organization}#{current_user} edited data bag item #{object_name}:#{object_secondary_name}"
end

#after_databagfromfileObject



66
67
68
# File 'lib/knife-spork/plugins/hipchat.rb', line 66

def after_databagfromfile
  hipchat "#{organization}#{current_user} uploaded data bag item #{object_name}:#{object_secondary_name}"
end

#after_databagitemdeleteObject



62
63
64
# File 'lib/knife-spork/plugins/hipchat.rb', line 62

def after_databagitemdelete
  hipchat "#{organization}#{current_user} deleted data bag item #{object_name}:#{object_secondary_name}"
end

#after_environmentcreateObject



26
27
28
# File 'lib/knife-spork/plugins/hipchat.rb', line 26

def after_environmentcreate
  hipchat "#{organization}#{current_user} created environment #{object_name}"
end

#after_environmentdeleteObject



30
31
32
# File 'lib/knife-spork/plugins/hipchat.rb', line 30

def after_environmentdelete
  hipchat "#{organization}#{current_user} deleted environment #{object_name}"
end

#after_environmenteditObject



22
23
24
# File 'lib/knife-spork/plugins/hipchat.rb', line 22

def after_environmentedit
  hipchat "#{organization}#{current_user} edited environment #{object_name}"
end

#after_environmentfromfileObject



18
19
20
# File 'lib/knife-spork/plugins/hipchat.rb', line 18

def after_environmentfromfile
  hipchat "#{organization}#{current_user} uploaded environment #{object_name}"
end

#after_nodecreateObject



78
79
80
# File 'lib/knife-spork/plugins/hipchat.rb', line 78

def after_nodecreate
  hipchat "#{organization}#{current_user} created node #{object_name}"
end

#after_nodedeleteObject



74
75
76
# File 'lib/knife-spork/plugins/hipchat.rb', line 74

def after_nodedelete
  hipchat "#{organization}#{current_user} deleted node #{object_name}"
end

#after_nodeeditObject



70
71
72
# File 'lib/knife-spork/plugins/hipchat.rb', line 70

def after_nodeedit
  hipchat "#{organization}#{current_user} edited node #{object_name}"
end

#after_nodefromfileObject



82
83
84
# File 'lib/knife-spork/plugins/hipchat.rb', line 82

def after_nodefromfile
  hipchat "#{organization}#{current_user} uploaded node #{object_name}"
end

#after_noderunlistaddObject



86
87
88
# File 'lib/knife-spork/plugins/hipchat.rb', line 86

def after_noderunlistadd
  hipchat "#{organization}#{current_user} added run_list items to #{object_name}: #{object_secondary_name}"
end

#after_noderunlistremoveObject



90
91
92
# File 'lib/knife-spork/plugins/hipchat.rb', line 90

def after_noderunlistremove
  hipchat "#{organization}#{current_user} removed run_list items from #{object_name}: #{object_secondary_name}"
end

#after_noderunlistsetObject



94
95
96
# File 'lib/knife-spork/plugins/hipchat.rb', line 94

def after_noderunlistset
  hipchat "#{organization}#{current_user} set the run_list for #{object_name} to #{object_secondary_name}"
end

#after_promote_remoteObject



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

def after_promote_remote
  hipchat "#{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_rolecreateObject



42
43
44
# File 'lib/knife-spork/plugins/hipchat.rb', line 42

def after_rolecreate
  hipchat "#{organization}#{current_user} created role #{object_name}"
end

#after_roledeleteObject



46
47
48
# File 'lib/knife-spork/plugins/hipchat.rb', line 46

def after_roledelete
  hipchat "#{organization}#{current_user} deleted role #{object_name}"
end

#after_roleeditObject



38
39
40
# File 'lib/knife-spork/plugins/hipchat.rb', line 38

def after_roleedit
  hipchat "#{organization}#{current_user} edited role #{object_name}"
end

#after_rolefromfileObject



34
35
36
# File 'lib/knife-spork/plugins/hipchat.rb', line 34

def after_rolefromfile
  hipchat "#{organization}#{current_user} uploaded role #{object_name}"
end

#after_uploadObject



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

def after_upload
  hipchat "#{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/hipchat.rb', line 8

def perform; end