Skip to content

Commit

Permalink
Fix rvm:use task
Browse files Browse the repository at this point in the history
  • Loading branch information
devvmh committed Sep 30, 2016
1 parent fb170b9 commit de9e237
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/mina/rvm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
task :'rvm:use', :env do |_, args|
unless args[:env]
puts "Task 'rvm:use' needs an RVM environment name as an argument."
puts "Example: invoke :'rvm:use[ruby-1.9.2@default]'"
puts "Example: invoke :'rvm:use', 'ruby-1.9.2@default'"
exit 1
end

Expand All @@ -16,13 +16,13 @@
fi
}
command %{source #{fetch(:rvm_use_path)}}
comment %{rvm use \\"#{args[:env]}\\" --create}
command %{rvm use "#{args[:env]}" --create}
end

task :'rvm:wrapper', :env, :name, :bin do |_, args|
unless args[:env] && args[:name] && args[:bin]
puts "Task 'rvm:wrapper' needs an RVM environment name, an wrapper name and the binary name as arguments"
puts "Example: invoke :'rvm:wrapper[ruby-1.9.2@myapp,myapp,unicorn_rails]'"
puts "Example: invoke :'rvm:wrapper', 'ruby-1.9.2@myapp,myapp,unicorn_rails'"
exit 1
end

Expand Down

0 comments on commit de9e237

Please sign in to comment.