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 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
 
@@ -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
- yield s, manipulator.method(method_name).call() if block_given?
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
@@ -1,5 +1,5 @@
1
1
  module Marionetta
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  DESCRIPTION = 'For lightweight puppet mastery. Organise
4
4
  multiple machines via rsync and SSH rather
5
5
  than using puppet master'
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.0
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
data/lib/test.rb DELETED
@@ -1,11 +0,0 @@
1
- def a(*args)
2
- yield args if block_given?
3
- end
4
-
5
- def b(*args, &block)
6
- a(*args, &block)
7
- end
8
-
9
- b do |str|
10
- puts str, 'cool'
11
- end