Module: Jets::Stack::Main::Dsl
- Extended by:
- ActiveSupport::Concern
- Included in:
- Jets::Stack
- Defined in:
- lib/jets/stack/main/dsl.rb,
lib/jets/stack/main/extensions/sns.rb,
lib/jets/stack/main/extensions/sqs.rb,
lib/jets/stack/main/extensions/base.rb,
lib/jets/stack/main/extensions/lambda.rb,
lib/jets/stack/main/extensions/cloudwatch.rb
Defined Under Namespace
Modules: Base, Cloudwatch, Lambda, Sns, Sqs
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/jets/stack/main/dsl.rb', line 19 def self.included(base) base_path = "#{Jets.root}app/shared/extensions" ActiveSupport::Dependencies.autoload_paths += [base_path] 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 |