Permalink
Browse files

little bit of usage, rakefile update and a gemspec

  • Loading branch information...
1 parent 4f03fec commit 3227a30ff9c070a373f71a2741a278c4aca0fe74 @atmos committed Jun 28, 2008
Showing with 59 additions and 5 deletions.
  1. +27 −1 README
  2. +4 −4 Rakefile
  3. +28 −0 keepalived_dot_conf.gemspec
View
28 README
@@ -1,4 +1,30 @@
keepalived_dot_conf
===================
-A gem that provides...
+A gem that provides parsing of keepalived's config file
+
+
+usage
+=====
+
+mpro% irb
+>> require 'lib/keepalived_dot_conf'
+=> true
+>> require 'pp'
+=> true
+>> pp KeepAlived::Parser.new.parse(File.read("spec/fixtures/keepalived.conf")).eval({})[:virtual_servers].first
+#<KeepAlivedConfigFile::AST::VirtualServer:0x12f8108
+ @delay_loop="6",
+ @ip="192.168.0.1",
+ @lb_algo="lc",
+ @lb_kind="NAT",
+ @nat_mask="255.255.255.0",
+ @persistence_timeout="0",
+ @port="80",
+ @protocol="TCP",
+ @sorry_server=
+ #<KeepAlivedConfigFile::AST::IpMapping:0x12f8068
+ @ip="127.0.0.1",
+ @port="80">,
+ @virtualhost=nil>
+=> nil
View
@@ -7,10 +7,10 @@ require 'date'
GEM = "keepalived_dot_conf"
GEM_VERSION = "0.0.1"
-AUTHOR = "Your Name"
-EMAIL = "Your Email"
-HOMEPAGE = "http://example.com"
-SUMMARY = "A gem that provides..."
+AUTHOR = "Corey Donohoe"
+EMAIL = "atmos@atmos.org"
+HOMEPAGE = "http://atmos.org"
+SUMMARY = "A gem that provides routines for interacting with keepalived.conf"
spec = Gem::Specification.new do |s|
s.name = GEM
@@ -0,0 +1,28 @@
+Gem::Specification.new do |s|
+ s.name = %q{keepalived_dot_conf}
+ s.version = "0.0.1"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Corey Donohoe"]
+ s.autorequire = %q{keepalived_dot_conf}
+ s.date = %q{2008-06-28}
+ s.description = %q{A gem that provides routines for interacting with keepalived.conf}
+ s.email = %q{atmos@atmos.org}
+ s.extra_rdoc_files = ["README", "LICENSE", "TODO"]
+ s.files = ["LICENSE", "README", "Rakefile", "TODO", "lib/keepalived", "lib/keepalived/ast.rb", "lib/keepalived/keepalived_config_file_you_shouldnt_use.treetop", "lib/keepalived/keepalived_config_file_you_shouldnt_use_node_classes.rb", "lib/keepalived_dot_conf.rb"]
+ s.has_rdoc = true
+ s.homepage = %q{http://atmos.org}
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.2.0}
+ s.summary = %q{A gem that provides routines for interacting with keepalived.conf}
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 2
+
+ if current_version >= 3 then
+ else
+ end
+ else
+ end
+end

0 comments on commit 3227a30

Please sign in to comment.