Sha256: f59e7aaeabb7906f297098baacaf093f2ec741df28d8f63b39030cbf60b07f81

Contents?: true

Size: 1.07 KB

Versions: 128

Compression:

Stored size: 1.07 KB

Contents

require 'active_support'
require 'active_support/core_ext/class'

# Jets::Job::Base < Jets::Lambda::Functions
# Both Jets::Job::Base and Jets::Lambda::Functions have Dsl modules included.
# So the Jets::Job::Dsl overrides some of the Jets::Lambda::Functions behavior.
#
# Implements:
#
#   default_associated_resource_definition
#
module Jets::Job::Dsl
  extend ActiveSupport::Concern

  included do
    class << self
      include Jets::AwsServices

      include DynamodbEvent
      include EventSourceMapping
      include IotEvent
      include KinesisEvent
      include LogEvent
      include RuleEvent
      include S3Event
      include SnsEvent
      include SqsEvent

      # Used to provide a little more identifiable event rule auto-descriptions
      class_attribute :rule_counter
      self.rule_counter = 0

      # TODO: Get rid of default_associated_resource_definition concept.
      # Also gets rid of the need to keep track of running @associated_properties too.
      def default_associated_resource_definition(meth)
        events_rule_definition
      end
    end
  end
end

Version data entries

128 entries across 128 versions & 3 rubygems

Version Path
jets-4.0.12 lib/jets/job/dsl.rb
jets-4.0.11 lib/jets/job/dsl.rb
jets-5.0.13 lib/jets/job/dsl.rb
jets-5.0.12 lib/jets/job/dsl.rb
jets-5.0.11 lib/jets/job/dsl.rb
jets-5.0.10 lib/jets/job/dsl.rb
jets-5.0.9 lib/jets/job/dsl.rb
jets-5.0.8 lib/jets/job/dsl.rb
jets-5.0.7 lib/jets/job/dsl.rb
jets-5.0.6 lib/jets/job/dsl.rb
jets-5.0.5 lib/jets/job/dsl.rb
jets-5.0.4 lib/jets/job/dsl.rb
jets-5.0.3 lib/jets/job/dsl.rb
jets-5.0.2 lib/jets/job/dsl.rb
jets-5.0.1 lib/jets/job/dsl.rb
jets-5.0.0 lib/jets/job/dsl.rb
jets-4.0.10 lib/jets/job/dsl.rb
jets-5.0.0.beta1 lib/jets/job/dsl.rb
jets-4.0.9 lib/jets/job/dsl.rb
jets-4.0.8 lib/jets/job/dsl.rb