lib/geordi/commands/rake.rb in geordi-4.1.0 vs lib/geordi/commands/rake.rb in geordi-4.1.1
- old
+ new
@@ -8,16 +8,18 @@
- test
- cucumber
LONGDESC
def rake(*args)
- invoke_cmd 'bundle_install'
+ invoke_geordi 'bundle_install'
%w[development test cucumber].each do |env| # update long_desc when changing this
if File.exist? "config/environments/#{env}.rb"
- call = [Util.binstub('rake')] + args + ["RAILS_ENV=#{env}"]
- Interaction.note_cmd call.join(' ')
+ command = []
+ command << Util.binstub_or_fallback('rake')
+ command += args
+ command << "RAILS_ENV=#{env}"
- Util.system! *call
+ Util.run!(command, show_cmd: true)
end
end
end