Sha256: 2b6604674f5df2933e3150a01f79099ff2f089181028a9eb216d74f3f0a3acf4

Contents?: true

Size: 426 Bytes

Versions: 10

Compression:

Stored size: 426 Bytes

Contents

# Implements:
#   initialize
#   policy_name
#
module Jets::Cfn::TemplateBuilders::IamPolicy
  class ApplicationPolicy < BasePolicy
    def initialize
      setup
      @definitions = Jets.config.iam_policy || [] # config.iam_policy contains definitions
    end

    # Example: PostsControllerPolicy or SleepJobPolicy
    # Note: There is no "method" in the name
    def policy_name
      "ApplicationPolicy"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
jets-0.6.9 lib/jets/cfn/template_builders/iam_policy/application_policy.rb
jets-0.6.8 lib/jets/cfn/template_builders/iam_policy/application_policy.rb
jets-0.6.7 lib/jets/cfn/template_builders/iam_policy/application_policy.rb
jets-0.6.6 lib/jets/cfn/template_builders/iam_policy/application_policy.rb
jets-0.6.5 lib/jets/cfn/template_builders/iam_policy/application_policy.rb
jets-0.6.4 lib/jets/cfn/template_builders/iam_policy/application_policy.rb
jets-0.6.3 lib/jets/cfn/template_builders/iam_policy/application_policy.rb
jets-0.6.2 lib/jets/cfn/template_builders/iam_policy/application_policy.rb
jets-0.6.1 lib/jets/cfn/template_builders/iam_policy/application_policy.rb
jets-0.6.0 lib/jets/cfn/template_builders/iam_policy/application_policy.rb