shadow_puppet 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/examples/foo.rb ADDED
@@ -0,0 +1,15 @@
1
+ class Foo < ShadowPuppet::Manifest
2
+ recipe :demo, :text => 'foo'
3
+ recipe :some_gems
4
+
5
+ def some_gems
6
+ package 'rails', :ensure => :updated, :provider => :gem
7
+ package 'railsmachine', :ensure => '1.0.5', :provider => :gem, :require => package('capistrano')
8
+ package 'capistrano', :ensure => :updated, :provider => :gem
9
+ end
10
+
11
+ def demo(options = {})
12
+ exec 'sample', :command => "/bin/echo '#{options[:text]}' > /tmp/sample.txt"
13
+ file '/tmp/sample2.txt', :ensure => :present, :content => Facter.to_hash.inspect
14
+ end
15
+ end
@@ -5,6 +5,8 @@ require 'active_support/core_ext/class/attribute_accessors'
5
5
  require 'active_support/core_ext/array'
6
6
  require 'active_support/inflector'
7
7
  require 'active_support/core_ext/hash/indifferent_access'
8
+ require 'active_support/core_ext/class/inheritable_attributes'
9
+ require 'active_support/core_ext/duplicable'
8
10
 
9
11
  module ShadowPuppet
10
12
  # A Manifest is an executable collection of Puppet Resources[http://reductivelabs.com/trac/puppet/wiki/TypeReference].
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shadow_puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Newland
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-27 00:00:00 -05:00
12
+ date: 2009-02-03 00:00:00 -05:00
13
13
  default_executable: shadow_puppet
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -76,6 +76,7 @@ files:
76
76
  - README.rdoc
77
77
  - LICENSE
78
78
  - bin/shadow_puppet
79
+ - examples/foo.rb
79
80
  - lib/shadow_puppet.rb
80
81
  - lib/shadow_puppet/manifest.rb
81
82
  has_rdoc: true