softwear-lib 0.0.10 → 0.0.11
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 +4 -3
- 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: ed3777f75b4444f72c0d19f0ae7028091c36d2c3
|
4
|
+
data.tar.gz: 91e13812ad0e24155e7c0c9a06793c9af5c5fb24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 509d856cc6a7e237a77b0d92291684b971048b39d28636f9e6b21764d8a6f120603dfb75f4e7d49a03218d09ad36fbaf37bc08255540bbe679a8868b26cf1502
|
7
|
+
data.tar.gz: 72cf6fd5aa62d4629014aecf268c55d109ab76ae9fe9d22fd820ff443939f7c5fc4429a8dc45b3e07046c8bc657607641ad546bec02a2a8737885dc7c06b781b
|
data/lib/softwear/lib/version.rb
CHANGED
data/lib/softwear/lib.rb
CHANGED
@@ -62,15 +62,16 @@ module Softwear
|
|
62
62
|
|
63
63
|
def self.capistrano(context)
|
64
64
|
context.instance_eval do
|
65
|
-
|
65
|
+
ruby = fetch(:rvm_ruby_string)
|
66
|
+
gem_home = fetch(:gems_path) || "~/.rvm/rubies/#{ruby}/gems/gems"
|
66
67
|
|
67
68
|
namespace :deploy do
|
68
69
|
|
69
70
|
desc 'Assure softwear-lib is up to date before deploying'
|
70
71
|
task :update_softwear_lib do
|
71
72
|
on roles(:app), in: :sequence do
|
72
|
-
execute "gem install softwear-lib"
|
73
|
-
execute "gem install -i #{gem_home} softwear-lib"
|
73
|
+
execute "(rvm use #{ruby}; gem install softwear-lib)"
|
74
|
+
execute "(rvm use #{ruby}; gem install -i #{gem_home} softwear-lib)"
|
74
75
|
end
|
75
76
|
end
|
76
77
|
|