shadow_puppet 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/shadow_puppet/manifest.rb +7 -3
  2. metadata +3 -3
@@ -85,7 +85,7 @@ module ShadowPuppet
85
85
 
86
86
  class_inheritable_accessor :recipes
87
87
  self.recipes = []
88
- attr_reader :puppet_resources, :name
88
+ attr_reader :puppet_resources
89
89
 
90
90
  # Initialize a new instance of this manifest. This can take a hash of
91
91
  # options that are avaliable later via the options method.
@@ -99,7 +99,6 @@ module ShadowPuppet
99
99
  Puppet::Util::Log.newdestination(:console)
100
100
  Puppet::Util::Log.level = :info
101
101
 
102
- @name = self.class
103
102
  @options = HashWithIndifferentAccess.new(options)
104
103
  @executed = false
105
104
  @puppet_resources = Hash.new do |hash, key|
@@ -132,6 +131,10 @@ module ShadowPuppet
132
131
  @options
133
132
  end
134
133
 
134
+ def name
135
+ @name ||= "#{self.class}##{self.object_id}"
136
+ end
137
+
135
138
  #Create an instance method for every type that either creates or references
136
139
  #a resource
137
140
  Puppet::Type.loadall
@@ -196,7 +199,7 @@ module ShadowPuppet
196
199
  obj.to_trans
197
200
  end
198
201
  b = Puppet::TransBucket.new(transportable_objects)
199
- b.name = "shadow_puppet:#{object_id}"
202
+ b.name = name
200
203
  b.type = "class"
201
204
 
202
205
  return b
@@ -222,6 +225,7 @@ module ShadowPuppet
222
225
  bucket ||= export()
223
226
  catalog = bucket.to_catalog
224
227
  catalog.apply
228
+ catalog.clear
225
229
  end
226
230
 
227
231
  def scope #:nodoc:
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Newland
@@ -28,9 +28,9 @@ dependencies:
28
28
  version_requirement:
29
29
  version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "="
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.5.2
33
+ version: 1.5.4
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: highline