marionetta 0.3.4 → 0.3.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.
data/README.md CHANGED
@@ -1,12 +1,27 @@
1
1
  # Marionetta
2
2
 
3
- A small ruby library for executing remote commands on a number
4
- of servers. Comes with puppet mastery built in.
3
+ Marionetta is a ruby library for executing commands to one
4
+ or more remote machines via SSH.
5
+
6
+ It provides puppet provisioning without the need for a puppet
7
+ master and can also deploy your application code (with
8
+ rollbacks) via rsync. With a RakeHelper you can integrate it
9
+ into your workflow with ease.
10
+
11
+ Installing the gem is the best way to start using Marionetta.
12
+ You can do this from command line:
5
13
 
6
14
  ```
7
15
  gem install marionetta
8
16
  ```
9
17
 
18
+ Or – better yet – in your Gemfile:
19
+
20
+ ``` ruby
21
+ source "http://rubygems.org"
22
+ gem 'marionetta'
23
+ ```
24
+
10
25
  ## Defining a group of servers
11
26
 
12
27
  Marionetta allows you to describe and manipulate a number of
@@ -24,7 +39,7 @@ end
24
39
 
25
40
  servers.add_server do |s|
26
41
  s[:hostname] = 'another@host.com'
27
- s[:ssh][:flags] = ['-i', 'keys/private.key']
42
+ s[:ssh][:flags] << ['-i', 'keys/private.key']
28
43
  end
29
44
  ```
30
45
 
@@ -24,7 +24,7 @@
24
24
  # [author]: http://lukemorton.co.uk
25
25
  # [github]: https://github.com/DrPheltRight/marionetta
26
26
  module Marionetta
27
- VERSION = '0.3.4'
27
+ VERSION = '0.3.5'
28
28
 
29
29
  ### Defining Servers
30
30
 
@@ -122,8 +122,8 @@ module Marionetta
122
122
 
123
123
  if server[:deployer].has_key?(:exclude)
124
124
  exclude_files = server[:deployer][:exclude]
125
- exclude_files.map! {|f| "#{tmp_release_dir}/#{f}"}
126
- cmd.system("rm -rf #{exclude_files.join(' ')}")
125
+ exclude_files.map! {|f| Dir["#{tmp_release_dir}/#{f}"]}
126
+ cmd.system("rm -rf #{exclude_files.flatten.join(' ')}")
127
127
  end
128
128
  end
129
129
 
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
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: