Class: Kybus::CLI::BotDeployerBase
- Inherits:
-
Object
- Object
- Kybus::CLI::BotDeployerBase
show all
- Defined in:
- lib/kybus/cli/bot/deployers/deployer_base.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of BotDeployerBase.
6
7
8
|
# File 'lib/kybus/cli/bot/deployers/deployer_base.rb', line 6
def initialize(configs)
@config = configs
end
|
Instance Method Details
#account_id ⇒ Object
14
15
16
17
18
19
20
|
# File 'lib/kybus/cli/bot/deployers/deployer_base.rb', line 14
def account_id
@account_id ||= begin
sts_client = Aws::STS::Client.new
response = sts_client.get_caller_identity
response.account
end
end
|
#function_name ⇒ Object
10
11
12
|
# File 'lib/kybus/cli/bot/deployers/deployer_base.rb', line 10
def function_name
"#{@config[:env] || 'production'}-#{@config['name']}"
end
|