Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ff2eb3e94b
Fetching contributors…

Cannot retrieve contributors at this time

file 22 lines (16 sloc) 0.386 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
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
Something went wrong with that request. Please try again.