tasks/mina/rvm.rb in mina-1.0.0.beta3 vs tasks/mina/rvm.rb in mina-1.0.0.beta4

- old
+ new

@@ -5,31 +5,31 @@ puts "Task 'rvm:use' needs an RVM environment name as an argument." puts "Example: invoke :'rvm:use[ruby-1.9.2@default]'" exit 1 end - comment %(Using RVM environment \\\"#{args[:env]}\\\") - command %(if [[ ! -s "#{fetch(:rvm_path)}" ]]; then + comment %{Using RVM environment \\\"#{args[:env]}\\\"} + command %{if [[ ! -s "#{fetch(:rvm_path)}" ]]; then echo "! Ruby Version Manager not found" echo "! If RVM is installed, check your :rvm_path setting." exit 1 - fi) - command %(source #{fetch(:rvm_path)}) - comment %(rvm use \\"#{args[:env]}\\" --create) + fi} + command %{source #{fetch(:rvm_path)}} + comment %{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]'" exit 1 end - comment %(creating RVM wrapper "#{args[:name]}_#{args[:bin]}" using \\"#{args[:env]}\\") - command %(if [[ ! -s "#{fetch(:rvm_path)}" ]]; then + comment %{creating RVM wrapper "#{args[:name]}_#{args[:bin]}" using \\"#{args[:env]}\\"} + command %{if [[ ! -s "#{fetch(:rvm_path)}" ]]; then echo "! Ruby Version Manager not found" echo "! If RVM is installed, check your :rvm_path setting." exit 1 - fi) - command %(source #{fetch(:rvm_path)}) - command %(rvm wrapper #{args[:env]} #{args[:name]} #{args[:bin]} || exit 1) + fi} + command %{source #{fetch(:rvm_path)}} + command %{rvm wrapper #{args[:env]} #{args[:name]} #{args[:bin]} || exit 1} end