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 +9 -7
- data/lib/cloud66_agent/utils/version.rb +1 -1
- metadata +1 -1
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
|
|
35
|
-
$
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|