erlnixify 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MGRkYTU3OWUxYmRkYjQ3OTk3NzYwYTgwYTMzNjAwOGFhMDNjMjhiMg==
4
+ NzA4ZTFlMDBjNmFlYTRmNmEwN2Y1OWYzNTRiYmMyYTc5MThlNGVhOA==
5
5
  data.tar.gz: !binary |-
6
- MjA5YmJjYTcxOGVlMzVlNTJjNzkwMWIzZDY4MWVlZTkwN2UzYWQ2NA==
6
+ Mjk0OTlkMzBlMjZjNWM2NDNiZmY1NGNiNjIyMDk5NWZmYzdhMzE0MQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YmVjNzIyNTNhODgwODk1YjlhYTgwYmM2MjM1OTIxZDdmZTNhZjExZGExNzI5
10
- ZTBkODM3NmI5MTVhMjY4ZDliMmRjYTc5NTlhM2QzMzk1ODBmY2RhZWJjMGYx
11
- NzQzYmQ2OWJlZmJjMjg3YjRiOWRlODM5YTQwYWZjNDNhN2VhNGE=
9
+ MDJiNWM0NTkyYzc4MDc2NjRjMTlhZTBmZGFlZTNlMmQwOThiMTc1N2EyZjU1
10
+ NjI3NzY2NzEzMTFiODFjMjI3MGEzMTYxMjE2OTM0OTQ5Yjk2MjFiMDcxMTI3
11
+ MDFlY2JhNmRjODY2YzcxMjc3ZDljNWZkZjc3MDZjNTEzMTQyMTQ=
12
12
  data.tar.gz: !binary |-
13
- YTMxYjg0ZmJkNWRiOWYwNWRjZmE0Nzk4YmZhODBlMjBjMDUwZmVlN2Y2MDcz
14
- MmNmZWQ1YmYzYzZjMzRlYjY1Y2VkMTllNTYyM2YzM2FhNTcxMDNhNTlmODRh
15
- NDQxZTFjN2RiMjdhOGQxOGU0NmFmYmIxYjVhZTEwOTI3Y2QwNTk=
13
+ ZGU1MzZmOThlMDczYjkzZmVlODU4M2NhZTIwMWRjYTZkYjc4MTJjYjJhZWUx
14
+ ZWU1NmRiZjBjMTQwNjBiOWYzMGJjZDdhZDkwZmRkMTQ0ZDUwMmM1NWQ2MWI2
15
+ MWNmY2ZhYTg4MWVlZDM0YmMzNDMxM2U4MDAzYzU1ZTk4MDNkNTQ=
@@ -16,7 +16,7 @@ module Erlnixify
16
16
 
17
17
  banner = "Usage: erlnixify [options]"
18
18
 
19
- command 'startdaemon' do
19
+ command 'startdeamon' do
20
20
  on :b, :release=, 'Release Root Directory'
21
21
  on :e, :erlang=, 'Erlang Root Directory'
22
22
  on :o, :home=, "The home directory to explicitly set"
@@ -40,7 +40,7 @@ module Erlnixify
40
40
  on :v, :version, "Show the Version"
41
41
 
42
42
  run do |opts, args|
43
- cmd = :startdaemon
43
+ cmd = :startdeamon
44
44
  end
45
45
  end
46
46
 
@@ -78,7 +78,6 @@ module Erlnixify
78
78
  on :o, :home=, "The home directory to explicitly set"
79
79
  on :n, :name=, "The short name of the node to be managed"
80
80
  on :fullnode=, "The fully qualified node name"
81
- on :m, :command=, "The command to run to start the release"
82
81
  on :k, :check=, "The command to check if the release is active"
83
82
  on :r, :checkregex=, "The regex that must match to the output of check command"
84
83
  on :x, :cookiefile=, "A file that contains the erlang cookie, not needed if cookie is set"
@@ -106,7 +105,6 @@ module Erlnixify
106
105
  on :o, :home=, "The home directory to explicitly set"
107
106
  on :n, :name=, "The short name of the node to be managed"
108
107
  on :fullnode=, "The fully qualified node name"
109
- on :m, :command=, "The command to run to start the release"
110
108
  on :k, :check=, "The command to check if the release is active"
111
109
  on :r, :checkregex=, "The regex that must match to the output of check command"
112
110
  on :x, :cookiefile=, "A file that contains the erlang cookie, not needed if cookie is set"
@@ -1,3 +1,3 @@
1
1
  module Erlnixify
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/erlnixify.rb CHANGED
@@ -16,7 +16,8 @@ module Erlnixify
16
16
  exit 0
17
17
  end
18
18
 
19
- if not options[:command]
19
+ if ((@opts.command == "start" or
20
+ @opts.command == "startdeamon") and not options[:command])
20
21
  puts "missing command option, this is required"
21
22
  puts @opts.opts.help
22
23
  exit 1
@@ -33,7 +34,6 @@ module Erlnixify
33
34
  puts @opts.opts.help
34
35
  exit 1
35
36
  end
36
-
37
37
  @settings = Erlnixify::Settings.new(options)
38
38
  @node = Erlnixify::Node.new(@settings)
39
39
  begin
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erlnixify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Merritt