-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed how the initializers are defined by default, including hooks,…
… requires, and routes. Updated the generated apps as well, in addition to the spec app.
- Loading branch information
Showing
7 changed files
with
36 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
support/generators/halcyon/templates/config/initialize/hooks.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# = Hooks | ||
Halcyon::Application.startup do |config, logger| | ||
logger.info 'Define startup tasks in config/initialize/hooks.rb' | ||
end | ||
|
||
Halcyon::Application.shutdown do |config, logger| | ||
logger.info 'Define shutdown tasks in config/initialize/hooks.rb' | ||
end |
2 changes: 2 additions & 0 deletions
2
support/generators/halcyon/templates/config/initialize/requires.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# = Required Libraries | ||
%w().each {|dep|require dep} |
9 changes: 9 additions & 0 deletions
9
support/generators/halcyon/templates/config/initialize/routes.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# = Routes | ||
Halcyon::Application.route do |r| | ||
r.match('/time').to(:controller => 'application', :action => 'time') | ||
|
||
r.match('/').to(:controller => 'application', :action => 'index') | ||
|
||
# failover | ||
{:action => 'not_found'} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters