marionetta 0.4.9 → 0.4.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/marionetta.rb +1 -1
- data/lib/marionetta/manipulators/deployer.rb +2 -2
- data/spec/deployer_spec.rb +1 -1
- metadata +3 -3
data/lib/marionetta.rb
CHANGED
@@ -137,7 +137,7 @@ module Marionetta
|
|
137
137
|
def clean()
|
138
138
|
rels = releases()
|
139
139
|
rels.pop()
|
140
|
-
rm = ['rm', '-
|
140
|
+
rm = ['rm', '-rf'].concat(rels.map {|r| release_dir(r)})
|
141
141
|
rm << release_dir('skip-*')
|
142
142
|
cmd.ssh(rm)
|
143
143
|
end
|
@@ -161,7 +161,7 @@ module Marionetta
|
|
161
161
|
end
|
162
162
|
|
163
163
|
def cache_dir()
|
164
|
-
"#{to_dir}/cache"
|
164
|
+
"#{to_dir}/releases/cache"
|
165
165
|
end
|
166
166
|
|
167
167
|
def shared_dir()
|
data/spec/deployer_spec.rb
CHANGED
@@ -15,8 +15,8 @@ describe Marionetta::Manipulators::Deployer do
|
|
15
15
|
cmd.ssh('rm -rf ~/app')
|
16
16
|
deployer.setup
|
17
17
|
cmd.ssh("[ -d ~/app/releases ]").should == true
|
18
|
+
cmd.ssh("[ -d ~/app/releases/cache ]").should == true
|
18
19
|
cmd.ssh("[ -d ~/app/shared ]").should == true
|
19
|
-
cmd.ssh("[ -d ~/app/cache ]").should == true
|
20
20
|
end
|
21
21
|
|
22
22
|
it 'should deploy' do
|
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.4.
|
4
|
+
version: 0.4.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -180,7 +180,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
segments:
|
182
182
|
- 0
|
183
|
-
hash:
|
183
|
+
hash: -505595625180329508
|
184
184
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
185
185
|
none: false
|
186
186
|
requirements:
|
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
189
|
version: '0'
|
190
190
|
segments:
|
191
191
|
- 0
|
192
|
-
hash:
|
192
|
+
hash: -505595625180329508
|
193
193
|
requirements: []
|
194
194
|
rubyforge_project:
|
195
195
|
rubygems_version: 1.8.24
|