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

Version Path
jets-2.3.1 lib/jets/stack/main/dsl.rb
jets-2.3.0 lib/jets/stack/main/dsl.rb
jets-2.2.5 lib/jets/stack/main/dsl.rb
jets-2.2.4 lib/jets/stack/main/dsl.rb
jets-2.2.3 lib/jets/stack/main/dsl.rb
jets-2.2.2 lib/jets/stack/main/dsl.rb
jets-2.2.1 lib/jets/stack/main/dsl.rb
jets-2.2.0 lib/jets/stack/main/dsl.rb
jets-2.1.7 lib/jets/stack/main/dsl.rb
jets-2.1.6 lib/jets/stack/main/dsl.rb
jets-2.1.5 lib/jets/stack/main/dsl.rb
jets-2.1.4 lib/jets/stack/main/dsl.rb
jets-2.1.3 lib/jets/stack/main/dsl.rb
jets-2.1.2 lib/jets/stack/main/dsl.rb
jets_bb_fork-0.0.4 lib/jets/stack/main/dsl.rb
jets-2.1.1 lib/jets/stack/main/dsl.rb
jets-2.1.0 lib/jets/stack/main/dsl.rb
jets-2.0.6 lib/jets/stack/main/dsl.rb
jets-2.0.5 lib/jets/stack/main/dsl.rb
jets-2.0.4 lib/jets/stack/main/dsl.rb