kraken 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Kraken
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
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.3
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: -4481981961494165018
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: -4481981961494165018
129
+ hash: 2778441468206626204
130
130
  requirements: []
131
131
  rubyforge_project:
132
132
  rubygems_version: 1.8.21