marionetta 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -70,51 +70,54 @@ end
70
70
  servers.manipulate_each_server(:puppet, :update)
71
71
  ```
72
72
 
73
- ## Using Marionetta in your Rakefile
74
-
75
- Marionetta provides an easy mechanism to generate rake tasks
76
- for each of your groups.
73
+ ## Using the debloyer
77
74
 
78
- In your Rakefile you can do something like so:
75
+ Also included is a .deb deploying manipulator. You can use
76
+ this to deploy your application over SSH as a .deb.
79
77
 
80
78
  ``` ruby
81
79
  require 'marionetta/group'
82
- require 'marionetta/rake_helper'
83
80
 
84
81
  staging = Marionetta::Group.new(:staging)
85
82
 
86
83
  staging.add_server do |s|
87
84
  s[:hostname] = 'staging.example.com'
88
- s[:puppet][:manifest] = 'puppet/manifest.pp'
85
+ s[:debloyer][:from] = '/my-app'
86
+ s[:debloyer][:to] = '/home/staging/www'
89
87
  end
90
88
 
91
- Marionetta::RakeHelper.new(staging).install_group_tasks
89
+ staging.manipulate_each_server(:debloyer, :deploy)
92
90
  ```
93
91
 
94
- The tasks `staging:puppet:install` and `staging:puppet:update`
95
- will now be available in your Rakefile.
96
-
97
- **Groups must have names if you want to generate rake tasks.**
92
+ ## Using Marionetta in your Rakefile
98
93
 
99
- ## Using the debloyer
94
+ Marionetta provides an easy mechanism to generate rake tasks
95
+ for each of your groups.
100
96
 
101
- Also included is a .deb deploying manipulator. You can use
102
- this to deploy your application over SSH as a .deb.
97
+ In your Rakefile you can do something like so:
103
98
 
104
99
  ``` ruby
105
100
  require 'marionetta/group'
101
+ require 'marionetta/rake_helper'
106
102
 
107
103
  staging = Marionetta::Group.new(:staging)
108
104
 
109
105
  staging.add_server do |s|
110
106
  s[:hostname] = 'staging.example.com'
107
+ s[:puppet][:manifest] = 'puppet/manifest.pp'
111
108
  s[:debloyer][:from] = '/my-app'
112
109
  s[:debloyer][:to] = '/home/staging/www'
113
110
  end
114
111
 
115
- staging.manipulate_each_server(:debployer, :deploy)
112
+ Marionetta::RakeHelper.new(staging).install_group_tasks
116
113
  ```
117
114
 
115
+ The tasks `staging:puppet:install`, `staging:puppet:update`
116
+ `staging:debloyer:deploy` will now be available in your
117
+ Rakefile.
118
+
119
+ **Groups must have names if you want to generate rake tasks.**
120
+
118
121
  ## Author
119
122
 
120
123
  Luke Morton a.k.a. DrPheltRight
@@ -5,8 +5,8 @@ module Marionetta
5
5
 
6
6
  def self.all()
7
7
  {
8
- :debployer => Debloyer,
9
- :puppet => PuppetManipulator,
8
+ :debloyer => Debloyer,
9
+ :puppet => PuppetManipulator,
10
10
  }
11
11
  end
12
12
 
data/lib/marionetta.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Marionetta
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  DESCRIPTION = 'For lightweight puppet mastery. Organise
4
4
  multiple machines via rsync and SSH rather
5
5
  than using puppet master'
@@ -10,5 +10,6 @@ describe Marionetta::RakeHelper do
10
10
  Rake::Task.tasks.count.should > 0
11
11
 
12
12
  Rake::Task['vagrant:puppet:update'].invoke
13
+ Rake::Task['vagrant:debloyer:deploy'].invoke
13
14
  end
14
15
  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.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: