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 +8 -8
- data/lib/erlnixify/opts.rb +2 -4
- data/lib/erlnixify/version.rb +1 -1
- data/lib/erlnixify.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzA4ZTFlMDBjNmFlYTRmNmEwN2Y1OWYzNTRiYmMyYTc5MThlNGVhOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Mjk0OTlkMzBlMjZjNWM2NDNiZmY1NGNiNjIyMDk5NWZmYzdhMzE0MQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDJiNWM0NTkyYzc4MDc2NjRjMTlhZTBmZGFlZTNlMmQwOThiMTc1N2EyZjU1
|
10
|
+
NjI3NzY2NzEzMTFiODFjMjI3MGEzMTYxMjE2OTM0OTQ5Yjk2MjFiMDcxMTI3
|
11
|
+
MDFlY2JhNmRjODY2YzcxMjc3ZDljNWZkZjc3MDZjNTEzMTQyMTQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGU1MzZmOThlMDczYjkzZmVlODU4M2NhZTIwMWRjYTZkYjc4MTJjYjJhZWUx
|
14
|
+
ZWU1NmRiZjBjMTQwNjBiOWYzMGJjZDdhZDkwZmRkMTQ0ZDUwMmM1NWQ2MWI2
|
15
|
+
MWNmY2ZhYTg4MWVlZDM0YmMzNDMxM2U4MDAzYzU1ZTk4MDNkNTQ=
|
data/lib/erlnixify/opts.rb
CHANGED
@@ -16,7 +16,7 @@ module Erlnixify
|
|
16
16
|
|
17
17
|
banner = "Usage: erlnixify [options]"
|
18
18
|
|
19
|
-
command '
|
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 = :
|
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"
|
data/lib/erlnixify/version.rb
CHANGED
data/lib/erlnixify.rb
CHANGED
@@ -16,7 +16,8 @@ module Erlnixify
|
|
16
16
|
exit 0
|
17
17
|
end
|
18
18
|
|
19
|
-
if
|
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
|