swirl 1.2 → 1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/swirl/ec2.rb +3 -1
- metadata +2 -2
data/lib/swirl/ec2.rb
CHANGED
@@ -20,7 +20,9 @@ module Swirl
|
|
20
20
|
|
21
21
|
|
22
22
|
def self.options(name=:default, file="~/.swirl")
|
23
|
-
|
23
|
+
file = File.expand_path(file)
|
24
|
+
return {} if !File.exists?(file)
|
25
|
+
YAML.load_file(file)[name]
|
24
26
|
end
|
25
27
|
|
26
28
|
def initialize(options={}, file="~/.swirl")
|