Sha256: 773fbf971ee40a0fdf7a0d863f235d32ce0884426b7f9488d65ec6402602d815
Contents?: true
Size: 639 Bytes
Versions: 10
Compression:
Stored size: 639 Bytes
Contents
module Ufo::IamRole class DSL include DslEvaluator def initialize(path) @path = path # IE: .ufo/iam_roles/task_role.rb end def evaluate evaluate_file(@path) end def iam_policy(policy_name, statements) role_type = File.basename(@path).sub('.rb','') # task_role or execution_role Registry.register_policy(role_type, policy_name, statements) end def managed_iam_policy(*policies) role_type = File.basename(@path).sub('.rb','') # task_role or execution_role Registry.register_managed_policy(role_type, policies) end def aws AwsData.new end end end
Version data entries
10 entries across 10 versions & 1 rubygems