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.0.3 lib/jets/stack/main/dsl.rb
jets-2.0.1 lib/jets/stack/main/dsl.rb
jets-2.0.0 lib/jets/stack/main/dsl.rb
jets-1.9.32 lib/jets/stack/main/dsl.rb
jets-1.9.31 lib/jets/stack/main/dsl.rb
jets-1.9.30 lib/jets/stack/main/dsl.rb
jets-1.9.29 lib/jets/stack/main/dsl.rb
jets-1.9.28 lib/jets/stack/main/dsl.rb
jets-1.9.27 lib/jets/stack/main/dsl.rb
jets-1.9.26 lib/jets/stack/main/dsl.rb
jets-1.9.25 lib/jets/stack/main/dsl.rb
jets-1.9.24 lib/jets/stack/main/dsl.rb
jets-1.9.23 lib/jets/stack/main/dsl.rb
jets-1.9.22 lib/jets/stack/main/dsl.rb
jets-1.9.21 lib/jets/stack/main/dsl.rb
jets-1.9.20 lib/jets/stack/main/dsl.rb
jets-1.9.19 lib/jets/stack/main/dsl.rb
jets-1.9.18 lib/jets/stack/main/dsl.rb
jets-1.9.17 lib/jets/stack/main/dsl.rb
jets-1.9.16 lib/jets/stack/main/dsl.rb