Module: Jets::Lambda::Dsl
Overview
Other dsl that rely on this must implement
default_associated_resource_definition
Class Method Summary collapse
-
.add_custom_resource_extensions(base) ⇒ Object
end of included.
- .included(base) ⇒ Object
Instance Method Summary collapse
Class Method Details
.add_custom_resource_extensions(base) ⇒ Object
end of included
401 402 403 404 405 406 407 408 409 410 411 412 413 414 |
# File 'lib/jets/lambda/dsl.rb', line 401 def self.add_custom_resource_extensions(base) base_path = "#{Jets.root}/app/extensions" unless ActiveSupport::Dependencies.autoload_paths.include?(base_path) ActiveSupport::Dependencies.autoload_paths += [base_path] end Dir.glob("#{base_path}/**/*.rb").each do |path| next unless File.file?(path) class_name = path.sub("#{base_path}/", '').sub(/\.rb/,'').classify klass = class_name.constantize # autoload base.extend(klass) end end |
.included(base) ⇒ Object
416 417 418 |
# File 'lib/jets/lambda/dsl.rb', line 416 def self.included(base) add_custom_resource_extensions(base) end |
Instance Method Details
#lambda_functions ⇒ Object
8 9 10 |
# File 'lib/jets/lambda/dsl.rb', line 8 def lambda_functions self.class.lambda_functions end |