diff options
| author | Daniel Pittman <daniel@puppetlabs.com> | 2011-03-26 00:12:17 -0700 |
|---|---|---|
| committer | Daniel Pittman <daniel@puppetlabs.com> | 2011-03-28 10:45:34 -0700 |
| commit | b859baa04737644e40002f511c5941d002a956e3 (patch) | |
| tree | f8f4d581c3b0445df836d5e55945f62547239598 /lib/puppet/application/indirection_base.rb | |
| parent | 88aeb04a50d8997b5e1e0ed7a5a2239508b174ee (diff) | |
| download | puppet-b859baa04737644e40002f511c5941d002a956e3.tar.gz puppet-b859baa04737644e40002f511c5941d002a956e3.tar.xz puppet-b859baa04737644e40002f511c5941d002a956e3.zip | |
MAINT: the API is officially named "string" as of this moment.
Now that we have settled on the final public name for the API,
"Puppet::String", mass-rename and mass-edit all the files to follow.
Reviewed-By: Randall Hansen <randall@puppetlabs.com>
Diffstat (limited to 'lib/puppet/application/indirection_base.rb')
| -rw-r--r-- | lib/puppet/application/indirection_base.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/puppet/application/indirection_base.rb b/lib/puppet/application/indirection_base.rb index 7d1c851cf..da61f408d 100644 --- a/lib/puppet/application/indirection_base.rb +++ b/lib/puppet/application/indirection_base.rb @@ -1,6 +1,6 @@ -require 'puppet/application/interface_base' +require 'puppet/application/string_base' -class Puppet::Application::IndirectionBase < Puppet::Application::InterfaceBase +class Puppet::Application::IndirectionBase < Puppet::Application::StringBase option("--terminus TERMINUS") do |arg| @terminus = arg end @@ -10,10 +10,10 @@ class Puppet::Application::IndirectionBase < Puppet::Application::InterfaceBase def setup super - if interface.respond_to?(:indirection) - raise "Could not find data type #{type} for application #{self.class.name}" unless interface.indirection + if string.respond_to?(:indirection) + raise "Could not find data type #{type} for application #{self.class.name}" unless string.indirection - interface.set_terminus(terminus) if terminus + string.set_terminus(terminus) if terminus end end end |
