Sha256: 28fdedbabaacc919b56f58c007535309221a45ae7e751bbdc2b266555f88f468

Contents?: true

Size: 283 Bytes

Versions: 6

Compression:

Stored size: 283 Bytes

Contents

# This coolness is from Chris Wanstrath
# http://errtheblog.com/posts/31-rake-around-the-rosie

%w(development production staging testing).each do |env|
  desc "Runs the following task in the #{env} environment" 
  task env.to_sym do
    RAILS_ENV = ENV['RAILS_ENV'] = env
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
deprec-3.1.0.rc3 lib/deprec/rake/environments.rake
deprec-3.1.0.rc2 lib/deprec/rake/environments.rake
deprec-3.1.0.rc1 lib/deprec/rake/environments.rake
deprec-2.2.3 lib/deprec/rake/environments.rake
deprec-2.2.2 lib/deprec/rake/environments.rake
deprec-2.2.1 lib/deprec/rake/environments.rake