sr-scripts 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sr-scripts/version.rb +1 -1
- data/lib/sr-scripts.rb +3 -1
- metadata +2 -2
data/lib/sr-scripts/version.rb
CHANGED
data/lib/sr-scripts.rb
CHANGED
@@ -6,10 +6,12 @@ module SrScripts
|
|
6
6
|
def self.get
|
7
7
|
if File.exists? '.sr-scripts.yml'
|
8
8
|
return YAML.load_file '.sr-scripts.yml'
|
9
|
+
elsif File.exists? File.expand_path('~/.sr-scripts.yml')
|
10
|
+
return YAML.load_file File.expand_path('~/.sr-scripts.yml')
|
9
11
|
elsif File.exists? '/etc/sr-scripts.yml'
|
10
12
|
return YAML.load_file '/etc/sr-scripts.yml'
|
11
13
|
else
|
12
|
-
puts "Config File Is Missing: searching for ./.sr-scripts.yml or /etc/sr-scripts.yml"
|
14
|
+
puts "Config File Is Missing: searching for ./.sr-scripts.yml, ~/.sr-scripts.yml or /etc/sr-scripts.yml"
|
13
15
|
exit 1
|
14
16
|
end
|
15
17
|
end
|