standup 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/standup/settings.rb +9 -7
- data/lib/standup/version.rb +1 -1
- metadata +1 -1
data/lib/standup/settings.rb
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
if File.exists?('config/standup.yml')
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
2
|
+
module Standup
|
3
|
+
class Settings < Settingslogic
|
4
|
+
source 'config/standup.yml'
|
5
|
+
load!
|
6
|
+
|
7
|
+
aws['account_id'].gsub!(/\D/, '') if aws['account_id']
|
8
|
+
# keypair_file default to ~/.ssh/keypair_name.pem
|
9
|
+
aws['keypair_file'] ||= "#{File.expand_path '~'}/.ssh/#{aws.keypair_name}.pem"
|
10
|
+
end
|
9
11
|
end
|
10
12
|
else
|
11
13
|
Standup.const_set :Settings, ActiveSupport::HashWithIndifferentAccess.new('nodes' => {})
|
data/lib/standup/version.rb
CHANGED