Class: Kybus::CLI::BotDeployerBase

Inherits:
Object
  • Object
show all
Defined in:
lib/kybus/cli/bot/deployers/deployer_base.rb

Instance Method Summary collapse

Constructor Details

#initialize(configs) ⇒ BotDeployerBase

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_idObject



14
15
16
17
18
19
20
# File 'lib/kybus/cli/bot/deployers/deployer_base.rb', line 14

def 
  @account_id ||= begin
    sts_client = Aws::STS::Client.new
    response = sts_client.get_caller_identity
    response.
  end
end

#function_nameObject



10
11
12
# File 'lib/kybus/cli/bot/deployers/deployer_base.rb', line 10

def function_name
  "#{@config[:env] || 'production'}-#{@config['name']}"
end