lib/splash/config.rb in prometheus-splash-0.1.0 vs lib/splash/config.rb in prometheus-splash-0.1.1
- old
+ new
@@ -1,6 +1,6 @@
-require 'etc'
+# coding: utf-8
module Splash
module Config
include Splash::Helpers
include Splash::Constants
@@ -173,15 +173,14 @@
full_res =+ 1
puts "[KO]"
end
if full_res > 0 then
- $stderr.puts "Splash config done with #{full_res} errors"
- return 25
+ $stderr.puts " => #{full_res} errors occured"
+ return { :case => :splash_setup_error}
else
- puts "Splash config successfully done."
- return 0
+ return { :case => :splash_setup_success }
end
end
# Sanitycheck action method for testing installation of Splash
@@ -228,14 +227,13 @@
print "[KO]\n"
full_res =+ 1
end
if full_res > 0 then
- $stderr.puts "Sanitycheck finished with #{full_res} errors"
- return 20
+ $stderr.puts " => #{full_res} errors occured"
+ return { :case => :splash_sanitycheck_error }
else
- puts "Sanitycheck finished with no errors"
- return 0
+ return { :case => :splash_sanitycheck_success}
end
end
private