Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
Always load the railtie.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Oct 21, 2011
1 parent 8e34e56 commit 8d93837
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
12 changes: 4 additions & 8 deletions README.md
Expand Up @@ -43,17 +43,13 @@ The default is to deploy to staging:

## Rake

Kumade auto-generates a deploy:ENV task for every Heroku environment.

# in your Rakefile:
require 'kumade/railtie'
# Kumade must be required before this line
Blog::Application.load_tasks!
Kumade auto-generates a deploy:ENV task for every Heroku environment. You don't
need to do anything to get the Rake tasks, they're automatically set up for you.
They're of the form deploy:ENV, so if you have a "staging" remote, you would
run:

$ rake deploy:staging

If you use rake tasks, you can't pass in options (like -p/--pretend).

## Does it support the Cedar stack?

Yes. Kumade will automatically detect if your app is running on Cedar.
Expand Down
3 changes: 1 addition & 2 deletions features/railtie.feature
Expand Up @@ -6,8 +6,7 @@ Feature: Railtie
@creates-remote @disable-bundler @slow
Scenario: Rake tasks are loaded
Given a new Rails application with Kumade
When I require the kumade railtie in the Rakefile
And I create a Heroku remote named "staging"
When I create a Heroku remote named "staging"
And I create a non-Heroku remote named "bad_remote"
Then the rake tasks should include "deploy:staging" with a description of "Deploy to staging environment"
But the rake tasks should not include "deploy:bad_remote"
3 changes: 2 additions & 1 deletion lib/kumade.rb
@@ -1,8 +1,9 @@
require 'kumade/railtie'

module Kumade
autoload :Git, "kumade/git"
autoload :Deployer, "kumade/deployer"
autoload :CLI, "kumade/cli"
autoload :Railtie, "kumade/railtie"
autoload :DeploymentError, "kumade/deployment_error"
autoload :Configuration, "kumade/configuration"
autoload :Heroku, "kumade/heroku"
Expand Down

0 comments on commit 8d93837

Please sign in to comment.