capobvious 0.3.pre7 → 0.3.pre8

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,6 @@ Capistrano::Configuration.instance(:must_exist).load do
13
13
  _cset :auto_migrate, true
14
14
  _cset(:ssh) {"ssh -p #{fetch(:port, 22)} #{user}@#{serv}"}
15
15
 
16
- set :rvmrc_string ,"rvm use #{fetch(:ruby_version)}"
17
16
  after "deploy:update_code", "create:rvmrc"
18
17
  after "deploy:update", "deploy:cleanup"
19
18
 
@@ -78,7 +77,7 @@ Capistrano::Configuration.instance(:must_exist).load do
78
77
  namespace :create do
79
78
  desc "Create .rvmrc"
80
79
  task :rvmrc do
81
- put rvmrc_string, "#{latest_release}/.rvmrc"
80
+ run "cd #{latest_release} && rvm use #{exists?(:ruby_version) ? fetch(:ruby_version) : ''} --create --rvmrc"
82
81
  end
83
82
  end
84
83
 
@@ -1,3 +1,3 @@
1
1
  module Capobvious
2
- VERSION = "0.3.pre7"
2
+ VERSION = "0.3.pre8"
3
3
  end
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: capobvious
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 4
5
- version: 0.3.pre7
5
+ version: 0.3.pre8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Dmitry Gruzd
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-11 00:00:00.000000000 Z
12
+ date: 2013-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano