cloud66_agent 1.0.4 → 1.0.5

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.
data/bin/cloud66_agent CHANGED
@@ -31,13 +31,15 @@ $logger = Logger.new($config.log)
31
31
  $logger.level = $config.log_level
32
32
 
33
33
  # nothing allowed while disabled
34
- if $config.disabled
35
- $logger.error "This agent had been disabled. Please contact Cloud 66 if you think this is in error"
36
- exit 86
37
- elsif !$config.is_agent_configured? && command != 'configure'
38
- # no other commands allowed while not configured
39
- $logger.error "Can only do command \"configure\" (until its been configured!)"
40
- exit -1
34
+ if command != 'configure'
35
+ if $config.disabled
36
+ $logger.error "This agent had been disabled. Please contact Cloud 66 if you think this is in error"
37
+ exit 86
38
+ elsif !$config.is_agent_configured?
39
+ # no other commands allowed while not configured
40
+ $logger.error "Can only do command \"configure\" (until its been configured!)"
41
+ exit -1
42
+ end
41
43
  end
42
44
 
43
45
  # handle commands
@@ -13,7 +13,7 @@ module Cloud66
13
13
  # Defines the minor version
14
14
  # PATCH:
15
15
  # Defines the patch version
16
- MAJOR, MINOR, PATCH = 1, 0, 4
16
+ MAJOR, MINOR, PATCH = 1, 0, 5
17
17
 
18
18
  #ie. PRERELEASE_MODIFIER = 'beta1'
19
19
  PRERELEASE_MODIFIER = nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud66_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: