lib/wss_agent/specifications.rb in wss_agent-0.0.15 vs lib/wss_agent/specifications.rb in wss_agent-0.0.16
- old
+ new
@@ -47,11 +47,12 @@
result = wss_client.update(WssAgent::Specifications.list(options))
if result.success?
WssAgent.logger.debug result.data
puts result.message
else
- ap "synchronization errors occur: status: #{result.status}, message: #{result.message}"
+ WssAgent.logger.debug "synchronization errors occur: status: #{result.status}, message: #{result.message}, data: #{result.data}"
+ ap "error: #{result.status}/#{result.data}", color: {string: :red }
end
result.success?
end
@@ -63,10 +64,11 @@
result = wss_client.check_policies(WssAgent::Specifications.list(options))
if result.success?
WssAgent.logger.debug result.data
puts result.message
else
- ap "check policies errors occur: #{result.status}, message: #{result.message}, data: #{result.data}"
+ WssAgent.logger.debug "check policies errors occur: #{result.status}, message: #{result.message}, data: #{result.data}"
+ ap "error: #{result.status}/#{result.data}", color: {string: :red }
end
end
# Get all dependencies includes development
#