Sha256: 969dfa0d172914b6b48f58364867140a35c836143c836666979f55f68005f802

Contents?: true

Size: 602 Bytes

Versions: 29

Compression:

Stored size: 602 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)
  invoke_geordi 'bundle_install'

  %w[development test cucumber].each do |env| # update long_desc when changing this
    if File.exist? "config/environments/#{env}.rb"
      command = []
      command << Util.binstub_or_fallback('rake')
      command += args
      command << "RAILS_ENV=#{env}"

      Util.run!(command, show_cmd: true)
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
geordi-9.5.1 lib/geordi/commands/rake.rb
geordi-9.5.0 lib/geordi/commands/rake.rb
geordi-9.4.1 lib/geordi/commands/rake.rb
geordi-9.4.0 lib/geordi/commands/rake.rb
geordi-9.3.1 lib/geordi/commands/rake.rb
geordi-9.3.0 lib/geordi/commands/rake.rb
geordi-9.2.0 lib/geordi/commands/rake.rb
geordi-9.1.0 lib/geordi/commands/rake.rb
geordi-9.0.0 lib/geordi/commands/rake.rb
geordi-8.0.0 lib/geordi/commands/rake.rb
geordi-7.0.2 lib/geordi/commands/rake.rb
geordi-7.0.1 lib/geordi/commands/rake.rb
geordi-7.0.0 lib/geordi/commands/rake.rb
geordi-6.1.0 lib/geordi/commands/rake.rb
geordi-6.0.1 lib/geordi/commands/rake.rb
geordi-6.0.0 lib/geordi/commands/rake.rb
geordi-6.0.0.pre.rc1 lib/geordi/commands/rake.rb
geordi-5.4.0 lib/geordi/commands/rake.rb
geordi-5.3.0 lib/geordi/commands/rake.rb
geordi-5.2.4 lib/geordi/commands/rake.rb