Sha256: 04548382767ed2d2cd4e967f8ae5459628a425fb8a21091d245f5b48a50ab6b1
Contents?: true
Size: 770 Bytes
Versions: 1
Compression:
Stored size: 770 Bytes
Contents
require 'yaml' module Yun class Config def self.aws_access_key_id setting[:aws_access_key_id] end def self.aws_secret_access_key setting[:aws_secret_access_key] end def self.region setting[:region] end def self.key_name setting[:key_name] end def self.chef_repo setting[:chef_repo] end def self.get_image os_name setting[:os][os_name.to_sym][:image] end def self.get_user os_name setting[:os][os_name.to_sym][:user] end def self.images setting[:os] end private def self.setting @setting ||= YAML.load_file(config_file)[:default] end def self.config_file @config_file ||= File.expand_path('~/.yun') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yun-0.0.6 | lib/yun/config.rb |