Class: Yun::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/yun/config.rb

Class Method Summary collapse

Class Method Details

.aws_access_key_idObject



6
7
8
# File 'lib/yun/config.rb', line 6

def self.aws_access_key_id
  setting[:aws_access_key_id]
end

.aws_secret_access_keyObject



10
11
12
# File 'lib/yun/config.rb', line 10

def self.aws_secret_access_key
  setting[:aws_secret_access_key]
end

.chef_repoObject



22
23
24
# File 'lib/yun/config.rb', line 22

def self.chef_repo
  setting[:chef_repo]
end

.get_image(os_name) ⇒ Object



26
27
28
# File 'lib/yun/config.rb', line 26

def self.get_image os_name
  setting[:os][os_name.to_sym][:image]
end

.get_user(os_name) ⇒ Object



30
31
32
# File 'lib/yun/config.rb', line 30

def self.get_user os_name
  setting[:os][os_name.to_sym][:user]
end

.imagesObject



34
35
36
# File 'lib/yun/config.rb', line 34

def self.images
  setting[:os]
end

.key_nameObject



18
19
20
# File 'lib/yun/config.rb', line 18

def self.key_name
  setting[:key_name]
end

.regionObject



14
15
16
# File 'lib/yun/config.rb', line 14

def self.region
  setting[:region]
end