kstrano 1.1.16 → 1.1.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/kstrano.rb +5 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2040b8bd14fa9ef75cb2c3995a5899c903256cb
4
- data.tar.gz: b298b4e400fb0366a481a1f329820a6e97e2dd0b
3
+ metadata.gz: a747f085fa9c126cc6017cc63229eee1a4ec719c
4
+ data.tar.gz: 4a391b66105384766a9c3888c51bab347e1de865
5
5
  SHA512:
6
- metadata.gz: a8c50685f4dc861037780c1439f13ab7ea6aef52c74bf73b6f7c2fc03be8f98ae16a7a358878a1d336a1b0704f20020562bae136d6eeedc1f7806d90d0533b14
7
- data.tar.gz: 5c332140f5387bba096e64a836b1a8dc663dc48c519eda3b4ac1838426452908d4fd32492798db0b756c39dba7d1973ae650770ef8820688ca45252981d89a26
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.16
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-15 00:00:00.000000000 Z
11
+ date: 2014-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capifony