softwear-lib 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97b64212485241261ced1ad67a17878a318c3ef2
4
- data.tar.gz: 09a9b997eb7b09ee4cdec6a92dac978aeedf8b56
3
+ metadata.gz: dc1b9c37e2033ee3e24f968020f68e529def8390
4
+ data.tar.gz: f68745dad08f66224b1a1f182ef24e90d6dcc02d
5
5
  SHA512:
6
- metadata.gz: af28655c90b7a01da85bc721d1e7f23352fecccec418c9790cc469d4f5c75f2a2243e3806913899f77aa72615dbdf20b5d768837eefa8e2831c1933880a9cf1c
7
- data.tar.gz: f347ba77a99d28190f4d90b2fb0c18ace92ec9cb3c039c805b9c22ec33d9cd2053c78785492ac2fba86bf267b7b3249326f5242a727216f3111831b904dde490
6
+ metadata.gz: ca84ab111fc07c81a1fcc961f60bfa7038318c3d1315ab3982234634802bf6829b1ad3b55dbbddf7069f9d16704c6b8514bded324ffdeedf31a02525a199cf3e
7
+ data.tar.gz: fad616f135138357f5b714d79a16ddc69d1eef8f85fdaa959e2f4d14fc3d121fca8deee183ee5414714deaa51616ec601ac4c56b79cf2ea83966f2d28f847ef4
data/lib/softwear/lib.rb CHANGED
@@ -75,7 +75,18 @@ end
75
75
  end
76
76
  end
77
77
 
78
- before :updating, :update_softwear_lib
78
+ desc 'Signal the running rails app to restart'
79
+ task :restart do
80
+ on roles([:web, :app]), in: :sequence, wait: 5 do
81
+ execute :mkdir, '-p', "#{release_path}/tmp"
82
+ execute :touch, release_path.join('tmp/restart.txt')
83
+ end
84
+ end
85
+
86
+ # This is no longer necessary
87
+ # before :updating, :update_softwear_lib
88
+
89
+ after :publishing, :restart
79
90
  end
80
91
  end
81
92
  end
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
2
  module Lib
3
- VERSION = "1.0.1"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: softwear-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nigel Baillie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-20 00:00:00.000000000 Z
11
+ date: 2015-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler