softwear-lib 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/softwear/lib/version.rb +1 -1
- data/lib/softwear/lib.rb +8 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 048de840e37796a7bb9313ef628282339f92f67c
|
4
|
+
data.tar.gz: 32d5f3b975a4dd08fce61eea27f44dfe552d311f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 776e996a4b5045f04ee69aec5d92cb79555074c4210f1fa9224628c580df89393fd83266cc9274ad9f19e247bdf27c00239c1b2678affdc3eb50d6ed9a7a4b8c
|
7
|
+
data.tar.gz: f86cff6a3918405d25fc1bae71c21388f99c8134e17efa833f010f682751ad4d84e8f44b874c1fd2f51a152afe629b5ef0f449761a747a9a95eeaea0646948c7
|
data/lib/softwear/lib/version.rb
CHANGED
data/lib/softwear/lib.rb
CHANGED
@@ -5,8 +5,6 @@ module Softwear
|
|
5
5
|
module Lib
|
6
6
|
def self.common_gems(gemfile)
|
7
7
|
gemfile.instance_eval do
|
8
|
-
gem 'softwear-lib'
|
9
|
-
|
10
8
|
gem 'rails', '4.2.1'
|
11
9
|
|
12
10
|
gem 'mysql2'
|
@@ -62,17 +60,20 @@ module Softwear
|
|
62
60
|
|
63
61
|
def self.capistrano(context)
|
64
62
|
context.instance_eval do
|
65
|
-
|
63
|
+
gem_home = fetch(:gems_path) || "#{fetch(:deploy_to)}/shared/bundle/rbx/2.1/gems"
|
66
64
|
|
67
65
|
namespace :deploy do
|
68
66
|
|
69
67
|
desc 'Assure softwear-lib is up to date before deploying'
|
70
|
-
task :
|
71
|
-
|
72
|
-
|
68
|
+
task :update_softwear_lib do
|
69
|
+
on roles(:app), in: :sequence do
|
70
|
+
execute "GEM_PATH=#{gem_home} GEM_HOME=#{gem_home} gem install softwear-lib"
|
71
|
+
execute "GEM_PATH=#{gem_home} GEM_HOME=#{gem_home} gem update softwear-lib"
|
72
|
+
# execute "export GEM_HOME=#{gem_home} && echo gem home IS: $GEM_HOME"
|
73
|
+
end
|
73
74
|
end
|
74
75
|
|
75
|
-
before :
|
76
|
+
before :updating, :update_softwear_lib
|
76
77
|
|
77
78
|
end
|
78
79
|
end
|