kstrano 1.1.16 → 1.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kstrano.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a747f085fa9c126cc6017cc63229eee1a4ec719c
|
4
|
+
data.tar.gz: 4a391b66105384766a9c3888c51bab347e1de865
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b09ce1e408115a3580c6f469c4bb9661edfd25ee483ca2bbb37f6deb34656cd9e09f5aebf7f3120f57aac9f2d7fec58fc05e48523fee42cb51bdf34df7cfc2b
|
7
|
+
data.tar.gz: 8dd2198ec1459f72402fef93420638070925df96396972d1b4a558a0ec171a01b4429c40bdda489c7baaf2b20489228f0cacc26c98e051060ad21c5ea5c30b90
|
data/lib/kstrano.rb
CHANGED
@@ -172,6 +172,11 @@ namespace :deploy do
|
|
172
172
|
end
|
173
173
|
try_sudo "ln -sfT #{latest_release} #{current_path}"
|
174
174
|
end
|
175
|
+
|
176
|
+
task :cleanup, :except => { :no_release => true } do
|
177
|
+
count = fetch(:keep_releases, 2).to_i
|
178
|
+
try_sudo "ls -1dt --color=never #{releases_path}/* | tail -n +#{count + 1} | #{try_sudo} xargs rm -rf"
|
179
|
+
end
|
175
180
|
end
|
176
181
|
|
177
182
|
namespace :frontend do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kstrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kunstmaan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capifony
|