diff options
| author | Pieter van de Bruggen <pieter@puppetlabs.com> | 2011-03-24 09:25:33 -0700 |
|---|---|---|
| committer | Pieter van de Bruggen <pieter@puppetlabs.com> | 2011-03-25 08:59:08 -0700 |
| commit | 78371a739bcf1b1d76496e9038fa4b076a27032f (patch) | |
| tree | a68cf44c603f4e90f520b3805547a0858a3b634f /lib/puppet/interface | |
| parent | 53b0656048c3227048bdc317c5e917ad0c39e850 (diff) | |
| download | puppet-78371a739bcf1b1d76496e9038fa4b076a27032f.tar.gz puppet-78371a739bcf1b1d76496e9038fa4b076a27032f.tar.xz puppet-78371a739bcf1b1d76496e9038fa4b076a27032f.zip | |
(#6770) Refactor Puppet::Interface#initialize.
P::I#initialize now takes a name and a version (and an optional block). The
options hash has been removed, though it may be reintroduced if a legitimate
use case can be made for it (so far, it's only been used for the version
number).
Reviewed-By: Jacob Helwig
Diffstat (limited to 'lib/puppet/interface')
| -rw-r--r-- | lib/puppet/interface/interface_collection.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/interface/interface_collection.rb b/lib/puppet/interface/interface_collection.rb index d626c4f72..51b7534a0 100644 --- a/lib/puppet/interface/interface_collection.rb +++ b/lib/puppet/interface/interface_collection.rb @@ -9,7 +9,7 @@ module Puppet::Interface::InterfaceCollection $LOAD_PATH.each do |dir| next unless FileTest.directory?(dir) Dir.chdir(dir) do - Dir.glob("puppet/interface/*.rb").collect { |f| f.sub(/\.rb/, '') }.each do |file| + Dir.glob("puppet/interface/v*/*.rb").collect { |f| f.sub(/\.rb/, '') }.each do |file| iname = file.sub(/\.rb/, '') begin require iname |
