mtncd 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/bin/mtncd +14 -2
  3. data/lib/mtncd/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGU0NzdkMWY0NjJlNzY5ZjY2MjRlNzRiMDVmYmYzMzk0NGZmOTE1Ng==
4
+ NDkwYmZmMzg4ZGNmY2IyYTMwZjNjMDA2YjY1OGY1MDE2OGJmMmUwMA==
5
5
  data.tar.gz: !binary |-
6
- MDU2NDQ4N2JjOTAyNjRmZmZjZmFlZDllNDExYjZkODRlMTExMzQ3Yw==
6
+ ZmY0MTU2ODZjODg1OGEwY2JmOWIyNzQyMzZiMWNjOWYxNjNlZjk0MQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZmNlZWY4MGYwNzFlZTkwZWI4NzU4NDUzMzA4OGI0ODY0Yzc1ZmYxY2ViNjdm
10
- OGU4ZGM0MTJmY2JjMjFhYWQ0ODIyOTcxNTM4MDFhOWE3ZWM3ZGZlMTM2ZDM0
11
- NzAwNjNkZmQ5YTVhN2QyMDczODMyY2ZiNTBkNmMyYTllOWE0NDY=
9
+ NDVkZGMwM2QyZDZiOTZiZjZhZWYzNWJkMTU5ZjJmNGNkODlhNDIzMmJlNmYx
10
+ YzYyMWYzNmQ5YjkzNjM0OWNmYmE3ZjkwNjNjMmZhOTAwZWZiYzIxZGQ4YjI3
11
+ Y2FmMTY5ODNlMTlmMmY2OTJkNzBiNmJkYmM5MTg5MTVhMjFlMWY=
12
12
  data.tar.gz: !binary |-
13
- MTFmODFhM2EyMTY1ZTI5Y2U5YTNjOTczZWM1YzNiOTY0MmU0MDEwNzQyNmFi
14
- ZGI1NTMzOTljZjI1N2JiYTRjNWFhODY1MmU0YmExOWMwYzk5MTVlY2UzNWQ1
15
- ZDkwYmU3ZDFlMDkwN2Q0ZDcyYzg5MWFhNjA1YTYxZTdiOWFhYmQ=
13
+ MDQyN2E3MzY1NWY4MGU5NTA5ZDgzYjdmNzI1YTg3ZWViN2NkNTQzYWUyNzAy
14
+ NDQxNmU2NWUyMTJiNzRmOTY2NTczYWVmZTc0YmZiZTFhYmQ4OTViYTU4ODM0
15
+ YjY2MzgyODE0NTM0NTQ0MjIxOGNlNDk0ZmFkMGE5OWQzOTQ2YTk=
data/bin/mtncd CHANGED
@@ -64,6 +64,10 @@ command :deploy do |deploy|
64
64
  raise 'local commands are only available on infra or sled nodes'
65
65
  end
66
66
 
67
+ if $config['role'] == 'zi' && options[:cluster] == 'local'
68
+ raise "local status is only available on infra or sled nodes"
69
+ end
70
+
67
71
  event_options_hash = {
68
72
  'id' => "#{options[:id]}",
69
73
  'single' => options[:single],
@@ -111,6 +115,10 @@ command :deploy do |deploy|
111
115
  raise 'local commands are only available on infra or sled nodes'
112
116
  end
113
117
 
118
+ if $config['role'] == 'zi' && options[:cluster] == 'local'
119
+ raise "local status is only available on infra or sled nodes"
120
+ end
121
+
114
122
  event_options_hash = {
115
123
  'id' => "#{options[:id]}"
116
124
  }
@@ -161,6 +169,10 @@ command :status do |status|
161
169
  raise "local status is only available on infra or sled nodes"
162
170
  end
163
171
 
172
+ if $config['role'] == 'zi' && options[:cluster] == 'local'
173
+ raise "local status is only available on infra or sled nodes"
174
+ end
175
+
164
176
  serf_options_hash = {
165
177
  'ip' => $config['system']['serf'][options[:cluster]]['ip'],
166
178
  'port' => $config['system']['serf'][options[:cluster]]['port'],
@@ -256,7 +268,7 @@ pre do |global,command,options,args|
256
268
  raise "Invalid #{File.join(Dir.home, '.mtncdconf')}" if $config['role'].nil?
257
269
  raise "Invalid #{File.join(Dir.home, '.mtncdconf')}" if $config['deploy'].nil?
258
270
 
259
- if $config['role'] == 'central' || $config['role'] == 'ship'
271
+ if $config['role'] == 'central' || $config['role'] == 'ship' || $config['role'] == 'zi'
260
272
  raise "Invalid #{File.join(Dir.home, '.mtncdconf')}" if $config['deploy']['global'].nil?
261
273
  raise "Invalid #{File.join(Dir.home, '.mtncdconf')}" if $config['deploy']['global']['stop'].nil?
262
274
  raise "Invalid #{File.join(Dir.home, '.mtncdconf')}" if $config['deploy']['global']['start'].nil?
@@ -278,7 +290,7 @@ pre do |global,command,options,args|
278
290
  raise "Invalid #{File.join(Dir.home, '.mtncdconf')}" if $config['system']['redis']['db'].nil?
279
291
 
280
292
  raise "Invalid #{File.join(Dir.home, '.mtncdconf')}" if $config['system']['serf'].nil?
281
- if $config['role'] == 'central' || $config['role'] == 'ship'
293
+ if $config['role'] == 'central' || $config['role'] == 'ship' || $config['role'] == 'zi'
282
294
  raise "Invalid #{File.join(Dir.home, '.mtncdconf')}" if $config['system']['serf']['global'].nil?
283
295
  raise "Invalid #{File.join(Dir.home, '.mtncdconf')}" if $config['system']['serf']['global']['ip'].nil?
284
296
  raise "Invalid #{File.join(Dir.home, '.mtncdconf')}" if $config['system']['serf']['global']['port'].nil?
data/lib/mtncd/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mtncd
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mtncd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - MTN Satellite Communications
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-18 00:00:00.000000000 Z
11
+ date: 2014-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: resque