Skip to content
Browse files

version 0.1.0

  • Loading branch information...
1 parent f1fafc5 commit a4a878a675bab92faef259f58924b66fde5a5adf @vinibaggio committed Feb 1, 2011
Showing with 52 additions and 1 deletion.
  1. +28 −1 README.markdown
  2. +3 −0 lib/outpost/version.rb
  3. +21 −0 outpost.gemspec
View
29 README.markdown
@@ -21,12 +21,39 @@ It should report a status per declared system.
The idea is to make a reliable framework for the Ruby developer to create his own monitoring rules.
So, summing it all up, Nagios in Ruby, much cooler!
+## Installing
+
+ gem install outpost
+
+## Starting
+
+To create your Outposts, you must require 'outpost'. You also need to include
+'outpost/scouts' if you want to use the supplied scouts. Example:
+
+ require 'outpost'
+ require 'outpost/scouts'
+
+ class Bla < Outpost::DSL
+ using Outpost::Scouts::Http => "web page" do
+ options :host => 'localhost', :port => 3000
+ report :up, :response_code => 200
+ end
+ end
+
+ a = Bla.new
+ a.run
+ p a.messages # => ["Outpost::Scouts::Http: 'web page' is reporting up."]
+
+
## How it works
Consider the following example:
+ require 'outpost'
+ require 'outpost/scouts'
+
class HttpOutpostExample < Outpost::DSL
- using Scouts::Http => "web page" do
+ using Outpost::Scouts::Http => "web page" do
options :host => 'localhost', :port => 3000
report :up, :response_code => 200
report :down, :response_body => {:match => /Ops/}
View
3 lib/outpost/version.rb
@@ -0,0 +1,3 @@
+module Outpost
+ VERSION = "0.1.0".freeze
+end
View
21 outpost.gemspec
@@ -0,0 +1,21 @@
+$:.push File.expand_path("../lib", __FILE__)
+require "outpost/version"
+
+Gem::Specification.new do |s|
+ s.name = "outpost"
+ s.version = Outpost::VERSION.dup
+ s.description = "Simple service monitoring with a clean DSL for configuration."
+ s.summary = "Simple service monitoring with a clean DSL for configuration."
+ s.author = "Vinicius Baggio Fuentes"
+ s.email = "vinibaggio@gmail.com"
+ s.homepage = "http://www.github.com/vinibaggio/outpost"
+
+ s.rubyforge_project = "outpost"
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+
+ s.add_dependency("net-ping", "~> 1.3.7")
+end

0 comments on commit a4a878a

Please sign in to comment.
Something went wrong with that request. Please try again.