Sha256: da5ddf5ea0478fa146baf5dae6a9671bdd52734f5e243b1550322a622a413418

Contents?: true

Size: 423 Bytes

Versions: 232

Compression:

Stored size: 423 Bytes

Contents

class Jets::Stack
  class Resource
    module Dsl
      extend ActiveSupport::Concern

      def resources
        Resource.definitions(self.class)
      end

      class_methods do
        def resource(*definition)
          # self is subclass is the stack that inherits from Jets::Stack
          # IE: ExampleStack < Jets::Stack
          Resource.new(self, *definition).register
        end
      end
    end
  end
end

Version data entries

232 entries across 232 versions & 4 rubygems

Version Path
jets-1.4.7 lib/jets/stack/resource/dsl.rb
jets-1.4.6 lib/jets/stack/resource/dsl.rb
jets-1.4.5 lib/jets/stack/resource/dsl.rb
jets-1.4.4 lib/jets/stack/resource/dsl.rb
jets-1.4.3 lib/jets/stack/resource/dsl.rb
jets-1.4.2 lib/jets/stack/resource/dsl.rb
jets-1.4.1 lib/jets/stack/resource/dsl.rb
jets-1.4.0 lib/jets/stack/resource/dsl.rb
jets-1.3.9 lib/jets/stack/resource/dsl.rb
jets-1.3.8 lib/jets/stack/resource/dsl.rb
jets-1.3.7 lib/jets/stack/resource/dsl.rb
jets-1.3.6 lib/jets/stack/resource/dsl.rb
jets-1.3.5 lib/jets/stack/resource/dsl.rb
jets-1.3.4 lib/jets/stack/resource/dsl.rb
jets-1.3.3 lib/jets/stack/resource/dsl.rb
jets-1.3.2 lib/jets/stack/resource/dsl.rb
jets-1.3.1 lib/jets/stack/resource/dsl.rb
jets-1.3.0 lib/jets/stack/resource/dsl.rb
jets-1.2.1 lib/jets/stack/resource/dsl.rb
jets-1.2.0 lib/jets/stack/resource/dsl.rb