marionetta 0.3.0 → 0.3.1
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.
- data/README.md +2 -2
- data/lib/marionetta/group.rb +2 -1
- data/lib/marionetta.rb +1 -1
- metadata +1 -2
- data/lib/test.rb +0 -11
data/README.md
CHANGED
@@ -94,7 +94,7 @@ staging.manipulate_each_server(:deployer, :deploy)
|
|
94
94
|
|
95
95
|
The deployer also supports listing releases:
|
96
96
|
|
97
|
-
```
|
97
|
+
``` ruby
|
98
98
|
staging.manipulate_each_server(:deployer, :releases) do |server, releases|
|
99
99
|
puts server[:hostname], releases
|
100
100
|
end
|
@@ -102,7 +102,7 @@ end
|
|
102
102
|
|
103
103
|
Oh and you can rollback to the last release too!
|
104
104
|
|
105
|
-
```
|
105
|
+
``` ruby
|
106
106
|
staging.manipulate_each_server(:deployer, :rollback)
|
107
107
|
```
|
108
108
|
|
data/lib/marionetta/group.rb
CHANGED
@@ -65,7 +65,8 @@ module Marionetta
|
|
65
65
|
def manipulate_each_server(manipulator_name, method_name)
|
66
66
|
each_server do |s|
|
67
67
|
manipulator = Manipulators[manipulator_name].new(s)
|
68
|
-
|
68
|
+
return_val = manipulator.method(method_name).call()
|
69
|
+
yield s, return_val if block_given?
|
69
70
|
end
|
70
71
|
end
|
71
72
|
end
|
data/lib/marionetta.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marionetta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -127,7 +127,6 @@ files:
|
|
127
127
|
- lib/marionetta/manipulators/deployer.rb
|
128
128
|
- lib/marionetta/manipulators/puppet_manipulator.rb
|
129
129
|
- lib/marionetta/rake_helper.rb
|
130
|
-
- lib/test.rb
|
131
130
|
- marionetta.gemspec
|
132
131
|
- spec/app/app.rb
|
133
132
|
- spec/debloyer_spec.rb
|