Module: Conjur::Policy::Ruby::Grants

Includes:
CustomStatement
Included in:
Body, Entitlements
Defined in:
lib/conjur/policy/ruby/loader.rb

Instance Method Summary collapse

Methods included from CustomStatement

#custom_statement

Instance Method Details

#grant(&block) ⇒ Object



80
81
82
83
84
# File 'lib/conjur/policy/ruby/loader.rb', line 80

def grant &block
  custom_statement(block) do
    Conjur::Policy::Types::Grant.new
  end
end

#revoke(&block) ⇒ Object



86
87
88
89
90
# File 'lib/conjur/policy/ruby/loader.rb', line 86

def revoke &block
  custom_statement(block) do
    Conjur::Policy::Types::Revoke.new
  end
end