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 +18 -3
- data/lib/marionetta.rb +1 -1
- data/lib/marionetta/manipulators/deployer.rb +2 -2
- metadata +1 -1
data/README.md
CHANGED
@@ -1,12 +1,27 @@
|
|
1
1
|
# Marionetta
|
2
2
|
|
3
|
-
|
4
|
-
|
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]
|
42
|
+
s[:ssh][:flags] << ['-i', 'keys/private.key']
|
28
43
|
end
|
29
44
|
```
|
30
45
|
|
data/lib/marionetta.rb
CHANGED
@@ -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
|
|