kraken 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,23 +55,16 @@ module Kraken
55
55
  nodes(application).each do |node|
56
56
  Chef::Log.debug "Adding #{recipe} to #{node.name}'s run list."
57
57
 
58
+ run_list = node.run_list
59
+
58
60
  node.run_list << recipe
59
61
  node.save
62
+
63
+ node.run_list.reset! run_list
60
64
 
61
65
  Chef::Log.debug "Running chef client on #{node.name}."
62
66
  chef node, recipe
63
67
  end
64
68
  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
76
69
  end
77
70
  end
@@ -1,3 +1,3 @@
1
1
  module Kraken
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
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.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-06 00:00:00.000000000 Z
12
+ date: 2012-04-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-ssh
@@ -117,7 +117,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  segments:
119
119
  - 0
120
- hash: 2778441468206626204
120
+ hash: -3923613626930535093
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: 2778441468206626204
129
+ hash: -3923613626930535093
130
130
  requirements: []
131
131
  rubyforge_project:
132
132
  rubygems_version: 1.8.21