Class: Ec2::Config

Inherits:
Object
  • Object
show all
Includes:
Helper
Defined in:
lib/ec2/config.rb

Instance Method Summary collapse

Methods included from Helper

#error

Constructor Details

#initialize(config_path) ⇒ Config



7
8
9
# File 'lib/ec2/config.rb', line 7

def initialize(config_path)
  @config_path = config_path
end

Instance Method Details

#configObject



11
12
13
14
15
16
17
18
19
# File 'lib/ec2/config.rb', line 11

def config
  return @config if @config
  @config = {
    region: "ap-southeast-1",
    use_iam: true
  }
  read_config
  return @config
end