Sha256: 1fe82de606fe5906151b2e290c29e24670d958f387c931cb494e3cdd71323e7d

Contents?: true

Size: 467 Bytes

Versions: 19

Compression:

Stored size: 467 Bytes

Contents

require File.dirname(__FILE__) + '/version'

def rake_task(taskname)
  rake = fetch(:rake, "rake")
  rake_env = fetch(:rake_env, "")
  in_rails_root("#{rake} #{rake_env} #{taskname}")
end

def in_rails_root(taskname)
  rails_env = fetch(:rails_env, "production")
  directory = current_release
  run %{cd #{directory}; RAILS_ENV=#{rails_env} #{taskname}}
end

Dir[File.join(File.dirname(__FILE__), 'recipes', '*.rb')].each do |recipe|
  O2h.capistrano.load recipe
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
o2h-0.2.1 lib/o2h/recipes.rb
o2h-0.2.0 lib/o2h/recipes.rb
o2h-0.1.16 lib/o2h/recipes.rb
o2h-0.1.15 lib/o2h/recipes.rb
o2h-0.1.14 lib/o2h/recipes.rb
o2h-0.1.13 lib/o2h/recipes.rb
o2h-0.1.12 lib/o2h/recipes.rb
o2h-0.1.11 lib/o2h/recipes.rb
o2h-0.1.10 lib/o2h/recipes.rb
o2h-0.1.9 lib/o2h/recipes.rb
o2h-0.1.8 lib/o2h/recipes.rb
o2h-0.1.7 lib/o2h/recipes.rb
o2h-0.1.6 lib/o2h/recipes.rb
o2h-0.1.5 lib/o2h/recipes.rb
o2h-0.1.4 lib/o2h/recipes.rb
o2h-0.1.3 lib/o2h/recipes.rb
o2h-0.1.2 lib/o2h/recipes.rb
o2h-0.1.1 lib/o2h/recipes.rb
o2h-0.1.0 lib/o2h/recipes.rb