README.md in healthety-0.0.5 vs README.md in healthety-0.0.6

- old
+ new

@@ -1,8 +1,8 @@ # Ruby Worker -The Ruby Worker sends JSON wrapped data via UDP packets to a given server at a defined interval. +The Ruby Worker sends JSON wrapped data via UDP packets to a given host at a defined interval. ## Installation ``` $ gem install healthety @@ -12,11 +12,11 @@ ``` ruby require "healthety" Healthety.workers do - server "127.0.0.1" + host "localhost" port 41234 worker :load_average do interval 0.5 # Gets load average with a system call (Mac OS X) @@ -28,10 +28,12 @@ value rand(10) end end ``` +That's all you need to do to define two different workers. + ### Defining helpers If you want to define some helper methods create a new module first. Note the `helpers` method at the end to include your module into the workers. In this case a new file called `connection_helper.rb` contains the MySQL connection handling. ``` ruby @@ -55,10 +57,10 @@ require "healthety" require "connection_helper" Healthety.workers do - server "127.0.0.1" + host "localhost" port 41234 worker :user_count do interval 5 value mysql.query("SELECT COUNT(*) AS count FROM users").first["count"]