capobvious 0.3.pre8 → 0.3.pre9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/capobvious/recipes/main.rb +5 -1
- data/lib/capobvious/version.rb +1 -1
- metadata +1 -1
|
@@ -77,7 +77,11 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
77
77
|
namespace :create do
|
|
78
78
|
desc "Create .rvmrc"
|
|
79
79
|
task :rvmrc do
|
|
80
|
-
|
|
80
|
+
if exists?(:ruby_version)
|
|
81
|
+
rvmrc_string = "rvm use #{fetch(:ruby_version)} --create"
|
|
82
|
+
logger.info rvmrc_string
|
|
83
|
+
put rvmrc_string, "#{latest_release}/.rvmrc"
|
|
84
|
+
end
|
|
81
85
|
end
|
|
82
86
|
end
|
|
83
87
|
|
data/lib/capobvious/version.rb
CHANGED