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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2213172e93bf054552fbdc803850ceb241ba4ecc
4
- data.tar.gz: 7fd5229d7916bda4e6e66583fd6fcaf0cafc2095
3
+ metadata.gz: 3d844f0d5221ad140ee8dd79a0331caae1d6bcf7
4
+ data.tar.gz: b00c840ab43a300b9877ebceb001196cfecabd10
5
5
  SHA512:
6
- metadata.gz: 13e7e08f3608ea7d0d3e58e51a56d5aafc40293b1308978ee0208f2bb8dd8f25ef28eb10976b710bb13b10969e6770528bfe0a84447f971f4f84fe8ebd880467
7
- data.tar.gz: f1671a4162471abd9be73e6aefcd0903ed866ba4bd85cc491a4d9bce01f8621dbaad403741e7323e7ecec66ce6cecb85f17e246339aace6b2dd4e5b8f347ebac
6
+ metadata.gz: 0f07b9ace631e7d2f87dd72421c1e752ae605c12649c8937911a5e4d62f98ee7b7975e7b5a7e3a8ca79782b2011d404ee856d6dcf5ec96ae744817824c6efdcf
7
+ data.tar.gz: 10a22b92b66bef837b5c31cbd9815e361300c9ce8eb1b670d9e66b5b4f63c2560ae0face20cbcdc2aae79d0075838cc7692ac1c7a5fbb5a334623a4e058834a0
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Landrush
2
- VERSION = "0.16.0"
2
+ VERSION = "0.17.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: landrush
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Hinze