Class: StackMaster::Identity
- Inherits:
-
Object
- Object
- StackMaster::Identity
- Defined in:
- lib/stack_master/identity.rb
Instance Method Summary collapse
Instance Method Details
#account ⇒ Object
7 8 9 |
# File 'lib/stack_master/identity.rb', line 7 def account @account ||= sts.get_caller_identity.account end |
#running_in_allowed_account?(allowed_accounts) ⇒ Boolean
3 4 5 |
# File 'lib/stack_master/identity.rb', line 3 def running_in_allowed_account?(allowed_accounts) allowed_accounts.nil? || allowed_accounts.empty? || allowed_accounts.include?(account) end |