Class: ElasticGraph::AdminLambda::RakeAdapter::Application
- Inherits:
-
Rake::Application
- Object
- Rake::Application
- ElasticGraph::AdminLambda::RakeAdapter::Application
- Defined in:
- lib/elastic_graph/admin_lambda/rake_adapter.rb
Overview
A subclass that forces rake to use our desired Rakefile, and configures Rake to act a bit different.
Instance Method Summary collapse
-
#initialize ⇒ Application
constructor
A new instance of Application.
-
#standard_exception_handling ⇒ Object
Rake defines this to catch exceptions and call ‘exit(false)`, but we do not want that behavior.
Constructor Details
#initialize ⇒ Application
Returns a new instance of Application.
58 59 60 61 |
# File 'lib/elastic_graph/admin_lambda/rake_adapter.rb', line 58 def initialize super @rakefiles = [RAKEFILE] end |
Instance Method Details
#standard_exception_handling ⇒ Object
Rake defines this to catch exceptions and call ‘exit(false)`, but we do not want that behavior. We want to let lambda handle exceptions like normal.
65 66 67 |
# File 'lib/elastic_graph/admin_lambda/rake_adapter.rb', line 65 def standard_exception_handling yield end |