Class: KnifeSpork::Plugins::Grove
- Inherits:
-
Plugin
- Object
- Plugin
- KnifeSpork::Plugins::Grove
show all
- Defined in:
- lib/knife-spork/plugins/grove.rb
Instance Method Summary
collapse
Methods inherited from Plugin
#enabled?, hook, hooks, #initialize, name
Instance Method Details
#after_databagcreate ⇒ Object
70
71
72
73
74
|
# File 'lib/knife-spork/plugins/grove.rb', line 70
def after_databagcreate
grove <<-EOH
#{current_user} created data bag #{object_name}
EOH
end
|
#after_databagdelete ⇒ Object
88
89
90
91
92
|
# File 'lib/knife-spork/plugins/grove.rb', line 88
def after_databagdelete
grove <<-EOH
#{current_user} edited data bag #{object_name}
EOH
end
|
#after_databagedit ⇒ Object
76
77
78
79
80
|
# File 'lib/knife-spork/plugins/grove.rb', line 76
def after_databagedit
grove <<-EOH
#{current_user} edited data bag item #{object_name}:#{object_secondary_name}
EOH
end
|
#after_databagfromfile ⇒ Object
94
95
96
97
98
|
# File 'lib/knife-spork/plugins/grove.rb', line 94
def after_databagfromfile
grove <<-EOH
#{current_user} uploaded data bag item #{object_name}:#{object_secondary_name}
EOH
end
|
#after_databagitemdelete ⇒ Object
82
83
84
85
86
|
# File 'lib/knife-spork/plugins/grove.rb', line 82
def after_databagitemdelete
grove <<-EOH
#{current_user} edited data bag item #{object_name}:#{object_secondary_name}
EOH
end
|
#after_environmentcreate ⇒ Object
34
35
36
37
38
|
# File 'lib/knife-spork/plugins/grove.rb', line 34
def after_environmentcreate
grove <<-EOH
#{current_user} created environment #{object_name}
EOH
end
|
#after_environmentdelete ⇒ Object
40
41
42
43
44
|
# File 'lib/knife-spork/plugins/grove.rb', line 40
def after_environmentdelete
grove <<-EOH
#{current_user} deleted environment #{object_name}
EOH
end
|
#after_environmentedit ⇒ Object
28
29
30
31
32
|
# File 'lib/knife-spork/plugins/grove.rb', line 28
def after_environmentedit
grove <<-EOH
#{current_user} edited environment #{object_name}
EOH
end
|
#after_environmentfromfile ⇒ Object
22
23
24
25
26
|
# File 'lib/knife-spork/plugins/grove.rb', line 22
def after_environmentfromfile
grove <<-EOH
#{current_user} uploaded environment #{object_name}
EOH
end
|
#after_nodecreate ⇒ Object
112
113
114
115
116
|
# File 'lib/knife-spork/plugins/grove.rb', line 112
def after_nodecreate
grove <<-EOH
#{current_user} created node #{object_name}
EOH
end
|
#after_nodedelete ⇒ Object
106
107
108
109
110
|
# File 'lib/knife-spork/plugins/grove.rb', line 106
def after_nodedelete
grove <<-EOH
#{current_user} deleted node #{object_name}
EOH
end
|
#after_nodeedit ⇒ Object
100
101
102
103
104
|
# File 'lib/knife-spork/plugins/grove.rb', line 100
def after_nodeedit
grove <<-EOH
#{current_user} edited node #{object_name}
EOH
end
|
#after_nodefromfile ⇒ Object
118
119
120
121
122
|
# File 'lib/knife-spork/plugins/grove.rb', line 118
def after_nodefromfile
grove <<-EOH
#{current_user} uploaded node #{object_name}
EOH
end
|
#after_noderunlistadd ⇒ Object
124
125
126
127
128
|
# File 'lib/knife-spork/plugins/grove.rb', line 124
def after_noderunlistadd
grove <<-EOH
#{current_user} added run_list items to #{object_name}: #{object_secondary_name}
EOH
end
|
#after_noderunlistremove ⇒ Object
130
131
132
133
134
|
# File 'lib/knife-spork/plugins/grove.rb', line 130
def after_noderunlistremove
grove <<-EOH
#{current_user} removed run_list items from #{object_name}: #{object_secondary_name}
EOH
end
|
#after_noderunlistset ⇒ Object
136
137
138
139
140
|
# File 'lib/knife-spork/plugins/grove.rb', line 136
def after_noderunlistset
grove <<-EOH
#{current_user} set the run_list for #{object_name} to #{object_secondary_name}
EOH
end
|
16
17
18
19
20
|
# File 'lib/knife-spork/plugins/grove.rb', line 16
def after_promote_remote
grove <<-EOH
#{current_user} promoted #{cookbooks.collect{|c| "#{c.name}@#{c.version}"}.join(', ')} on #{environments.collect{|e| "#{e.name}"}.join(', ')}
EOH
end
|
#after_rolecreate ⇒ Object
58
59
60
61
62
|
# File 'lib/knife-spork/plugins/grove.rb', line 58
def after_rolecreate
grove <<-EOH
#{current_user} created role #{object_name}
EOH
end
|
#after_roledelete ⇒ Object
64
65
66
67
68
|
# File 'lib/knife-spork/plugins/grove.rb', line 64
def after_roledelete
grove <<-EOH
#{current_user} deleted role #{object_name}
EOH
end
|
#after_roleedit ⇒ Object
52
53
54
55
56
|
# File 'lib/knife-spork/plugins/grove.rb', line 52
def after_roleedit
grove <<-EOH
#{current_user} edited role #{object_name}
EOH
end
|
#after_rolefromfile ⇒ Object
46
47
48
49
50
|
# File 'lib/knife-spork/plugins/grove.rb', line 46
def after_rolefromfile
grove <<-EOH
#{current_user} uploaded role #{object_name}
EOH
end
|
#after_upload ⇒ Object
10
11
12
13
14
|
# File 'lib/knife-spork/plugins/grove.rb', line 10
def after_upload
grove <<-EOH
#{current_user} froze the following cookbooks on Chef Server: #{cookbooks.collect{|c| "#{c.name}@#{c.version}"}.join(', ')}
EOH
end
|
8
|
# File 'lib/knife-spork/plugins/grove.rb', line 8
def perform; end
|