diff options
author | Luke Kanies <luke@madstop.com> | 2005-05-30 23:24:51 +0000 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2005-05-30 23:24:51 +0000 |
commit | 18d755ac266e15f5c9fb284846df1c7d4c4a1457 (patch) | |
tree | fccbde89fc546806060d0c1ac57c56ad4d0c1d36 /lib | |
parent | 922994edc1447e523ba0ddc4efa0c9b61fa55fc8 (diff) | |
download | puppet-18d755ac266e15f5c9fb284846df1c7d4c4a1457.tar.gz puppet-18d755ac266e15f5c9fb284846df1c7d4c4a1457.tar.xz puppet-18d755ac266e15f5c9fb284846df1c7d4c4a1457.zip |
Rahh! component dependencies now work!
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@291 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
-rw-r--r-- | lib/blink/element.rb | 2 | ||||
-rw-r--r-- | lib/blink/type/component.rb | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lib/blink/element.rb b/lib/blink/element.rb index 5397548d1..dd187977a 100644 --- a/lib/blink/element.rb +++ b/lib/blink/element.rb @@ -16,7 +16,7 @@ class Blink::Element #--------------------------------------------------------------- # all of our subclasses must respond to each of these methods... @@interface_methods = [ - :retrieve, :insync?, :sync, :fqpath, :evaluate, :refresh + :retrieve, :insync?, :sync, :fqpath, :evaluate ] # so raise an error if a method that isn't overridden gets called diff --git a/lib/blink/type/component.rb b/lib/blink/type/component.rb index 63c89497a..38bf3326d 100644 --- a/lib/blink/type/component.rb +++ b/lib/blink/type/component.rb @@ -13,7 +13,7 @@ module Blink class Component < Blink::Type include Enumerable - @name = :container + @name = :component @namevar = :name @states = [] @@ -53,6 +53,14 @@ module Blink return "%s[%s]" % [@parameters[:type],@parameters[:name]] end + def refresh + @children.collect { |child| + if child.respond_to?(:refresh) + child.refresh + end + } + end + def retrieve self.collect { |child| child.retrieve |