Class: ElasticGraph::AdminLambda::RakeAdapter::Application

Inherits:
Rake::Application
  • Object
show all
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

Constructor Details

#initializeApplication

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_handlingObject

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