Sha256: 187e5e6a743b7c9d7e60bfc1036f5dc58f7fc8af9613bf6a57378541d464ca48
Contents?: true
Size: 531 Bytes
Versions: 5
Compression:
Stored size: 531 Bytes
Contents
desc 'rake TASK', 'Run a rake task in several Rails environments' long_desc <<-LONGDESC Example: `geordi rake db:migrate` `TASK` is run in the following Rails environments (if present): - development - test - cucumber LONGDESC def rake(*args) %w[development test cucumber].each do |env| # update long_desc when changing this if File.exist? "config/environments/#{env}.rb" call = %w[bundle exec rake] + args + ["RAILS_ENV=#{env}"] Interaction.note_cmd call.join(' ') Util.system! *call end end end
Version data entries
5 entries across 5 versions & 1 rubygems