Method: AMI::Config#initialize
- Defined in:
- lib/ami/config.rb
#initialize(config) ⇒ Config
Returns a new instance of Config.
31 32 33 34 35 36 37 38 39 |
# File 'lib/ami/config.rb', line 31 def initialize(config) @access_key = config.fetch('access_key') @secret_key = config.fetch('secret_key') @cert_path = config.fetch('cert_path') @pk_path = config.fetch('pk_path') @account_id = config.fetch('account_id') @s3_bucket = config.fetch('s3_bucket') @key_name = config.fetch('key_name') end |