landrush 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/landrush/command.rb +12 -1
- data/lib/landrush/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d844f0d5221ad140ee8dd79a0331caae1d6bcf7
|
4
|
+
data.tar.gz: b00c840ab43a300b9877ebceb001196cfecabd10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f07b9ace631e7d2f87dd72421c1e752ae605c12649c8937911a5e4d62f98ee7b7975e7b5a7e3a8ca79782b2011d404ee856d6dcf5ec96ae744817824c6efdcf
|
7
|
+
data.tar.gz: 10a22b92b66bef837b5c31cbd9815e361300c9ce8eb1b670d9e66b5b4f63c2560ae0face20cbcdc2aae79d0075838cc7692ac1c7a5fbb5a334623a4e058834a0
|
data/lib/landrush/command.rb
CHANGED
@@ -9,7 +9,7 @@ module Landrush
|
|
9
9
|
def execute
|
10
10
|
ARGV.shift # flush landrush from ARGV, RExec wants to use it for daemon commands
|
11
11
|
|
12
|
-
command = ARGV.first
|
12
|
+
command = ARGV.first || 'help'
|
13
13
|
if DAEMON_COMMANDS.include?(command)
|
14
14
|
Server.daemonize
|
15
15
|
elsif command == 'dependentvms' || command == 'vms'
|
@@ -25,6 +25,12 @@ module Landrush
|
|
25
25
|
io.puts "#{value}"
|
26
26
|
end
|
27
27
|
end
|
28
|
+
elsif command == 'set'
|
29
|
+
host, ip = ARGV[1,2]
|
30
|
+
Landrush::Store.hosts.set(host, ip)
|
31
|
+
elsif command == 'del' || command == 'rm'
|
32
|
+
key = ARGV[1]
|
33
|
+
Landrush::Store.hosts.delete(key)
|
28
34
|
elsif command == 'help'
|
29
35
|
@env.ui.info(help)
|
30
36
|
else
|
@@ -55,6 +61,11 @@ module Landrush
|
|
55
61
|
list all DNS entries known to landrush
|
56
62
|
dependentvms, vms
|
57
63
|
list vms currently dependent on the landrush server
|
64
|
+
set { <host> <ip> | <alias> <host> }
|
65
|
+
adds the given host-to-ip or alias-to-hostname mapping.
|
66
|
+
existing host ip addresses will be overwritten
|
67
|
+
rm, del { <host> | <alias> }
|
68
|
+
delete the given hostname or alias from the server
|
58
69
|
help
|
59
70
|
you're lookin at it!
|
60
71
|
EOS
|
data/lib/landrush/version.rb
CHANGED