outback 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/outback/cli.rb +2 -8
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.5
|
data/lib/outback/cli.rb
CHANGED
|
@@ -2,7 +2,7 @@ require 'optparse'
|
|
|
2
2
|
|
|
3
3
|
module Outback
|
|
4
4
|
module CLI
|
|
5
|
-
DEFAULT_CONFIGURATION_FILE = '/etc/outback
|
|
5
|
+
DEFAULT_CONFIGURATION_FILE = '/etc/outback.conf'
|
|
6
6
|
|
|
7
7
|
class << self
|
|
8
8
|
def invoke
|
|
@@ -35,13 +35,7 @@ module Outback
|
|
|
35
35
|
end
|
|
36
36
|
option_parser.parse!
|
|
37
37
|
Outback::Configuration.reset
|
|
38
|
-
config_file = ARGV.first
|
|
39
|
-
unless File.exists?(DEFAULT_CONFIGURATION_FILE)
|
|
40
|
-
Outback.error 'no configuration found'
|
|
41
|
-
exit(1)
|
|
42
|
-
end
|
|
43
|
-
DEFAULT_CONFIGURATION_FILE
|
|
44
|
-
end
|
|
38
|
+
config_file = ARGV.first || DEFAULT_CONFIGURATION_FILE
|
|
45
39
|
begin
|
|
46
40
|
load config_file
|
|
47
41
|
rescue ConfigurationError => conf_error
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: outback
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 21
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 5
|
|
10
|
+
version: 0.0.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Matthias Grosser
|