Sha256: 795338d0007589f0e3e41b9d7f5caaf70260ab941d700814ffcd74a38c672588
Contents?: true
Size: 648 Bytes
Versions: 48
Compression:
Stored size: 648 Bytes
Contents
class Jets::Stack class Main module Dsl extend ActiveSupport::Concern class_methods do include Base include Cloudwatch include Iam include Lambda include S3 include Sns include Sqs end def self.included(base) base_path = "#{Jets.root}/app/shared/extensions" Dir.glob("#{base_path}/**/*.rb").each do |path| next unless File.file?(path) class_name = path.sub("#{base_path}/", '').sub(/\.rb/,'').camelize klass = class_name.constantize # autoload base.extend(klass) end end end end end
Version data entries
48 entries across 48 versions & 2 rubygems