outback 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/outback/cli.rb +2 -8
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
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/outback.conf'
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 or begin
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matthias Grosser