Class: StackMaster::Identity

Inherits:
Object
  • Object
show all
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 ||= sts.get_caller_identity.
end

#running_in_allowed_account?(allowed_accounts) ⇒ Boolean

Returns:



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?()
end