This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Tue Jan 20 10:43:23 -0800 2009 | |
| |
LICENSE | Mon Jan 26 18:48:47 -0800 2009 | |
| |
Rakefile | Fri Feb 20 07:32:07 -0800 2009 | |
| |
Readme.rdoc | Tue Jan 27 07:49:07 -0800 2009 | |
| |
bin/ | Mon Jan 26 19:18:41 -0800 2009 | |
| |
examples/ | Mon Jan 26 19:21:41 -0800 2009 | |
| |
lib/ | Fri Feb 20 07:00:57 -0800 2009 | |
| |
shadow_facter.gemspec | Fri Feb 20 07:31:26 -0800 2009 | |
| |
spec/ | Tue Jan 27 08:48:36 -0800 2009 |
Readme.rdoc
ShadowFacter
ShadowFacter is a Ruby DSL for Facter, extracted out of the work we at Rails Machine are doing on Moonshine.
ShadowFacter provides a DSL for creating facts and processing them using Facter. A binary is provided to parse facts.
Example:
$ cat examples/lib/facts/kernel.rb
require 'shadow_facter'
namespace :kernel do
fact :name do
exec "uname -s"
end
fact :release do
exec "uname -r"
end
fact :version do
value(:release).to_s.split('.')[0]
end
end
Executing this fact:
$ bin/shadow_facter examples/lib/facts/kernel.rb kernel_name => Darwin kernel_version => 9 kernel_release => 9.6.0







