kraken 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/kraken/bestower.rb +12 -3
- data/lib/kraken/version.rb +1 -1
- metadata +3 -3
data/lib/kraken/bestower.rb
CHANGED
@@ -48,15 +48,13 @@ module Kraken
|
|
48
48
|
ssh.name_args = [ "name:#{node.name}", command ]
|
49
49
|
ssh.run
|
50
50
|
|
51
|
-
node.run_list.remove recipe
|
52
|
-
node.save
|
53
|
-
|
54
51
|
Chef::Log.debug "Kraken deployed #{recipe} on #{node.name}!"
|
55
52
|
end
|
56
53
|
|
57
54
|
def perform(application, recipe)
|
58
55
|
nodes(application).each do |node|
|
59
56
|
Chef::Log.debug "Adding #{recipe} to #{node.name}'s run list."
|
57
|
+
|
60
58
|
node.run_list << recipe
|
61
59
|
node.save
|
62
60
|
|
@@ -64,5 +62,16 @@ module Kraken
|
|
64
62
|
chef node, recipe
|
65
63
|
end
|
66
64
|
end
|
65
|
+
|
66
|
+
def cleanup(application, recipe)
|
67
|
+
nodes(application).each do |node|
|
68
|
+
Chef::Log.debug "Adding #{recipe} to #{node.name}'s run list."
|
69
|
+
|
70
|
+
node.run_list.remove recipe
|
71
|
+
node.save
|
72
|
+
|
73
|
+
Chef::Log.debug "Cleaning chef run list on #{node.name}."
|
74
|
+
end
|
75
|
+
end
|
67
76
|
end
|
68
77
|
end
|
data/lib/kraken/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kraken
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -117,7 +117,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
117
117
|
version: '0'
|
118
118
|
segments:
|
119
119
|
- 0
|
120
|
-
hash:
|
120
|
+
hash: 2778441468206626204
|
121
121
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
122
|
none: false
|
123
123
|
requirements:
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
version: '0'
|
127
127
|
segments:
|
128
128
|
- 0
|
129
|
-
hash:
|
129
|
+
hash: 2778441468206626204
|
130
130
|
requirements: []
|
131
131
|
rubyforge_project:
|
132
132
|
rubygems_version: 1.8.21
|