lib/playmo/recipes/rvm_recipe.rb in playmo-0.0.17 vs lib/playmo/recipes/rvm_recipe.rb in playmo-0.0.18
- old
+ new
@@ -3,10 +3,12 @@
class RvmRecipe < Playmo::Recipe
source_root File.expand_path('../templates/rvm_recipe', __FILE__)
def setup
silently do
-
+ if system 'which rvm'
+ run "cd #{application_name} && rvm #{RUBY_VERSION}@#{application_name} --rvmrc --create"
+ end
end
end
end
end
end
\ No newline at end of file