Sha256: 103b659fb4eb8e17a8dc4c7f85fa43dcc58f4720b6fc1b2ba59d1a145a576aee

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

if File.exists?('config/standup.yml')
  module Standup
    class Settings < Settingslogic
      source 'config/standup.yml'
      load!
  
      aws['account_id'].gsub!(/\D/, '') if aws['account_id']
      # keypair_file default to ~/.ssh/keypair_name.pem
      aws['keypair_file'] ||= "#{File.expand_path '~'}/.ssh/#{aws.keypair_name}.pem"
    end
  end
else
  Standup.const_set :Settings, ActiveSupport::HashWithIndifferentAccess.new('nodes' => {})
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
standup-0.6.7 lib/standup/settings.rb