marionetta 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -39,7 +39,7 @@ end
39
39
  ## Playing puppet master
40
40
 
41
41
  Instead of running a puppet master server you can use
42
- Marionetta to orchestrate a number instances puppet manifests.
42
+ Marionetta to orchestrate a number instances.
43
43
 
44
44
  ``` ruby
45
45
  require 'marionetta'
@@ -67,7 +67,7 @@ In your Rakefile you can do something like so:
67
67
  ``` ruby
68
68
  require 'marionetta/rake_helper'
69
69
 
70
- staging = Marionetta::Group.new(:staging)
70
+ staging = Marionetta::Group.new
71
71
 
72
72
  staging.add_server |s|
73
73
  s[:hostname] = 'staging.example.com'
@@ -77,8 +77,16 @@ end
77
77
  Marionetta::RakeHelper.new.install_group_tasks(staging)
78
78
  ```
79
79
 
80
+ The tasks `puppet:install` and `puppet:update` will now be
81
+ available in your Rakefile. If you want to namespace the tasks
82
+ further pass in a name to your `Marionetta::Group` like so:
83
+
84
+ ``` ruby
85
+ staging = Marionetta::Group.new(:staging)
86
+ ```
87
+
80
88
  The tasks `staging:puppet:install` and `staging:puppet:update`
81
- will be installed.
89
+ will be installed instead.
82
90
 
83
91
  ## Author
84
92
 
@@ -6,8 +6,8 @@ module Marionetta
6
6
  include ::Rake::DSL if defined?(::Rake::DSL)
7
7
 
8
8
  def install_group_tasks(group)
9
- Manipulators.all.each do |manipulator_name, Manipulator|
10
- Manipulator.tasks.each do |method_name|
9
+ Manipulators.all.each do |manipulator_name, manipulator_class|
10
+ manipulator_class.tasks.each do |method_name|
11
11
  task(task_name(group, manipulator_name, method_name)) do
12
12
  group.manipulate_each_server(manipulator_name, method_name)
13
13
  end
data/lib/marionetta.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Marionetta
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  DESCRIPTION = 'For lightweight puppet mastery. Organise
4
4
  multiple machines via rsync and SSH rather
5
5
  than using puppet master'
@@ -0,0 +1,9 @@
1
+ require 'marionetta'
2
+ require 'marionetta/rake_helper'
3
+
4
+ describe Marionetta::RakeHelper do
5
+ it 'should install rake tasks' do
6
+ group = Marionetta::Group.new(:staging)
7
+ Marionetta::RakeHelper.new.install_group_tasks(group)
8
+ end
9
+ end
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.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -98,6 +98,7 @@ files:
98
98
  - spec/marionetta_group_spec.rb
99
99
  - spec/marionetta_manipulators_spec.rb
100
100
  - spec/marionetta_puppet_manipulator_spec.rb
101
+ - spec/marionetta_rake_helper_spec.rb
101
102
  - spec/marionetta_spec.rb
102
103
  - spec/puppet/manifest.pp
103
104
  - spec/vagrant/Vagrantfile
@@ -122,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
123
  version: '0'
123
124
  requirements: []
124
125
  rubyforge_project:
125
- rubygems_version: 1.8.23
126
+ rubygems_version: 1.8.24
126
127
  signing_key:
127
128
  specification_version: 3
128
129
  summary: For lightweight puppet mastery. Organise multiple machines via rsync and
@@ -131,6 +132,7 @@ test_files:
131
132
  - spec/marionetta_group_spec.rb
132
133
  - spec/marionetta_manipulators_spec.rb
133
134
  - spec/marionetta_puppet_manipulator_spec.rb
135
+ - spec/marionetta_rake_helper_spec.rb
134
136
  - spec/marionetta_spec.rb
135
137
  - spec/puppet/manifest.pp
136
138
  - spec/vagrant/Vagrantfile