Sha256: a7949108eb411a09934223f050ba58ea579823a0590caf2030a12e6644078b0b

Contents?: true

Size: 585 Bytes

Versions: 14

Compression:

Stored size: 585 Bytes

Contents

namespace :precommit do
  old_env = ''

  task :dev_env do
    ENV['CALATRAVA_ENV'] = 'development' unless ENV['CALATRAVA_ENV']
  end

  task :begin_automation do
    old_env = ENV['CALATRAVA_ENV']
    ENV['CALATRAVA_ENV'] = 'automation'
  end

  task :end_automation do
    ENV['CALATRAVA_ENV'] = old_env
  end

  task :web_features => [:begin_automation, "configure:automation", "automation:acl:start", "automation:web:features", "automation:acl:stop", :end_automation]

  desc "Run this before pushing"
  task :mw => [:dev_env, "kernel:spec", "kernel:features", :web_features]

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
calatrava-0.6.11 lib/calatrava/tasks/precommit.rb
calatrava-0.6.10 lib/calatrava/tasks/precommit.rb
calatrava-0.6.9 lib/calatrava/tasks/precommit.rb
calatrava-0.6.8 lib/calatrava/tasks/precommit.rb
calatrava-0.6.7 lib/calatrava/tasks/precommit.rb
calatrava-0.6.6 lib/calatrava/tasks/precommit.rb
calatrava-0.6.5 lib/calatrava/tasks/precommit.rb
calatrava-0.6.4 lib/calatrava/tasks/precommit.rb
calatrava-0.6.3 lib/calatrava/tasks/precommit.rb
calatrava-0.6.2 lib/calatrava/tasks/precommit.rb
calatrava-0.6.1 lib/calatrava/tasks/precommit.rb
calatrava-0.6.0 lib/calatrava/tasks/precommit.rb
calatrava-0.5.0 lib/calatrava/tasks/precommit.rb
calatrava-0.0.1 lib/calatrava/tasks/precommit.rb