Module: Moonshot::AccountContext
- Defined in:
- lib/moonshot/account_context.rb
Class Method Summary collapse
Class Method Details
.determine_account_name ⇒ Object
17 18 19 |
# File 'lib/moonshot/account_context.rb', line 17 def self.determine_account_name Aws::IAM::Client.new.list_account_aliases.account_aliases.first end |
.get ⇒ Object
5 6 7 |
# File 'lib/moonshot/account_context.rb', line 5 def self.get @account ||= determine_account_name end |
.reset ⇒ Object
13 14 15 |
# File 'lib/moonshot/account_context.rb', line 13 def self.reset @account = nil end |
.set(account_name) ⇒ Object
9 10 11 |
# File 'lib/moonshot/account_context.rb', line 9 def self.set(account_name) @account = account_name end |