lib/rorvswild.rb in rorvswild-1.8.0 vs lib/rorvswild.rb in rorvswild-1.8.1
- old
+ new
@@ -81,10 +81,10 @@
end
def self.check
api_key = RorVsWild.agent.config[:api_key]
agent.client.instance_variable_set(:@http_unauthorized, false)
- return puts "You API key is missing and has to be defined in config/rorvswild.yml." if !api_key || api_key.empty?
+ return puts "Your API key is missing and has to be defined in config/rorvswild.yml." if !api_key || api_key.empty?
puts case response = agent.client.post("/jobs", jobs: [{sections: [], name: "RorVsWild.check", runtime: 0}])
when Net::HTTPOK then "Connection to RorVsWild works fine !"
when Net::HTTPUnauthorized then "Wrong API key"
else puts "Something went wrong: #{response.inspect}"
end