lib/softwear/lib.rb in softwear-lib-0.0.12 vs lib/softwear/lib.rb in softwear-lib-0.0.13
- old
+ new
@@ -61,23 +61,23 @@
end
def self.capistrano(context)
context.instance_eval do
ruby = fetch(:rvm_ruby_string) || fetch(:rvm_ruby_version)
- gem_home = fetch(:gems_path) || "~/.rvm/rubies/#{ruby}/gems/gems"
+ gem_home_1 = fetch(:gems_path) || "~/.rvm/rubies/#{ruby}/gems/gems"
+ gem_home_2 = "~/.rvm/gems/#{ruby}/gems"
namespace :deploy do
desc 'Assure softwear-lib is up to date before deploying'
task :update_softwear_lib do
on roles(:app), in: :sequence do
- execute "(rvm use #{ruby}; gem install softwear-lib)"
- execute "(rvm use #{ruby}; gem install -i #{gem_home} softwear-lib)"
+ execute "gem install -i #{gem_home_1} softwear-lib"
+ execute "gem install -i #{gem_home_2} softwear-lib"
end
end
before :updating, :update_softwear_lib
-
end
end
end
def self.fix_sort_argument_error_on_rubinius