rbg 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rbg +16 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d71c18be0ca0172d82230da2436bda62d10fb20
4
- data.tar.gz: 0d6abed5bd89af7a57d57339dadc1745d051b78d
3
+ metadata.gz: 50caba94804ca4d3750507e90b6fa5ee13837485
4
+ data.tar.gz: 13dbe53c54fe2e56f2ef42386d098d6f1f26c8bd
5
5
  SHA512:
6
- metadata.gz: 1b303e387f13032005ba6d0b56a7cd3326500d851bcd74ec994ec99e4bef78a9cf632679caacc74f9c2853677f349863d70fc563186b5f5dab174a63ab1879c5
7
- data.tar.gz: 8b583306606683f7d76ecfdc66653cdb6647ffd91a047df2a13b5f4ff9c72d8653b37286af81d4a4b7cbc7880ce9a55ac5d6fc0f33f4185a1147fdda5ea4664f
6
+ metadata.gz: 27be0cc0477c7e1e1aacbad125fafdbe9add8d091cec72f6493462ab37ef613ec76cf3636437ec1ba634a5fc734c57d4d5d5826765ec52b0278be528d831ef30
7
+ data.tar.gz: 35fc0b3b352a262b198df34515edf42235ce4ed16ac527596f4a1be0fc8a837d7fa37016847b4c5fbef21095fe3d6c11680918db6b121cb5b9849d32af3a7388
data/bin/rbg CHANGED
@@ -7,15 +7,28 @@ def die
7
7
  end
8
8
 
9
9
  begin
10
- command = nil
10
+ args = []
11
+ config_file = nil
12
+ environment = nil
13
+
11
14
  while arg = ARGV.shift
12
15
  case arg
13
16
  when '-c'
14
17
  config_file = ARGV.shift
15
- when '-E'
18
+ when '-E', '-e'
16
19
  environment = ARGV.shift
17
20
  else
18
- command = arg
21
+ args << arg
22
+ end
23
+ end
24
+
25
+ command = args[0]
26
+ if config_file.nil? && args[1]
27
+ [args[1], "./proceses/#{args[1]}.rb", "./config/processes/#{args[1]}.rb"].each do |loc|
28
+ if File.exist?(loc)
29
+ config_file = loc
30
+ break
31
+ end
19
32
  end
20
33
  end
21
34
 
@@ -27,8 +40,6 @@ begin
27
40
  end
28
41
  end
29
42
 
30
-
31
-
32
43
  die unless config_file
33
44
 
34
45
  case command
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie Smurthwaite
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-22 00:00:00.000000000 Z
11
+ date: 2014-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mono_logger