Sha256: 89d8eb0d9d36e32afd4f83ea11390d1a20bba5aa9a1809a3d80d6beda8e8b269

Contents?: true

Size: 486 Bytes

Versions: 58

Compression:

Stored size: 486 Bytes

Contents

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

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
standup-0.6.5 lib/standup/settings.rb
standup-0.6.4 lib/standup/settings.rb
standup-0.6.3 lib/standup/settings.rb
standup-0.6.2 lib/standup/settings.rb
standup-0.6.1 lib/standup/settings.rb
standup-0.6.0 lib/standup/settings.rb
standup-0.5.14 lib/standup/settings.rb
standup-0.5.13 lib/standup/settings.rb
standup-0.5.11 lib/standup/settings.rb
standup-0.5.10 lib/standup/settings.rb
standup-0.5.9 lib/standup/settings.rb
standup-0.5.8 lib/standup/settings.rb
standup-0.5.7 lib/standup/settings.rb
standup-0.5.6 lib/standup/settings.rb
standup-0.5.5 lib/standup/settings.rb
standup-0.5.4 lib/standup/settings.rb
standup-0.5.3 lib/standup/settings.rb
standup-0.5.1 lib/standup/settings.rb
standup-0.5.0 lib/standup/settings.rb
standup-0.4.0 lib/standup/settings.rb