cloudblocks 0.0.12d → 0.0.12e

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/cb-agent +5 -14
  2. metadata +1 -1
@@ -422,25 +422,16 @@ if @api_key.empty?
422
422
  puts 'Invalid Secret key'
423
423
  exit -1
424
424
  end
425
-
426
- save_config
427
- puts 'Configuration Saved'
428
425
  end
429
426
 
430
427
  # no agent id?
431
428
  if @agent_id.empty?
432
- q = ask("Register the agent? ") { |q| q.default = "Y" }
429
+ @quartz = CloudQuartz.new(:api_key => @api_key, :url => @url, :secret_key => @secret_key)
430
+ register
431
+ q = ask("Start the agent as a daemon? ") { |q| q.default = "Y" }
433
432
  if q.chomp.downcase != 'n'
434
- @quartz = CloudQuartz.new(:api_key => @api_key, :url => @url, :secret_key => @secret_key)
435
- register
436
-
437
- q = ask("Start the agent as a daemon? ") { |q| q.default = "Y" }
438
- if q.chomp.downcase != 'n'
439
- @quartz = CloudQuartz.new(:api_key => @api_key, :url => @url, :agent_id => @agent_id, :secret_key => @secret_key)
440
- start
441
- else
442
- exit 0
443
- end
433
+ @quartz = CloudQuartz.new(:api_key => @api_key, :url => @url, :agent_id => @agent_id, :secret_key => @secret_key)
434
+ start
444
435
  else
445
436
  exit 0
446
437
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudblocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12d
4
+ version: 0.0.12e
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: