Skip to content

Commit

Permalink
Trying out the shadow_puppet example
Browse files Browse the repository at this point in the history
  • Loading branch information
edavis10 committed Dec 22, 2009
0 parents commit 2c0d629
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions manifest_test.rb
@@ -0,0 +1,23 @@
require 'rubygems'
require 'shadow_puppet'
#require 'facter'

class ManifestTest < ShadowPuppet::Manifest
recipe :sample

def sample
exec :foo, :command => 'echo "foo" > /tmp/foo.txt'

package :ruby, :ensure => :installed

file '/tmp/example.txt', {
:ensure => :present,
:content => Facter.to_hash.inspect
}
end

end

m = ManifestTest.new
m.execute

0 comments on commit 2c0d629

Please sign in to comment.