Exception: Puppet::ModuleTool::Errors::ModuleToolError Private
- Defined in:
- lib/puppet/module_tool/errors/base.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Direct Known Subclasses
InstallConflictError, InstallError, InvalidDependencyCycleError, InvalidModuleError, InvalidModuleNameError, LocalChangesError, MultipleInstalledError, NoCandidateReleasesError, NoVersionsSatisfyError, NotInstalledError, UninstallError, UpgradeError
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
- #v(version) ⇒ Object private
- #vstring ⇒ Object private
Methods inherited from Error
Constructor Details
This class inherits a constructor from Puppet::Error
Instance Method Details
#v(version) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 |
# File 'lib/puppet/module_tool/errors/base.rb', line 5 def v(version) (version || '???').to_s.sub(/^(?=\d)/, 'v') end |
#vstring ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 12 13 14 15 |
# File 'lib/puppet/module_tool/errors/base.rb', line 9 def vstring if @action == :upgrade "#{v(@installed_version)} -> #{v(@requested_version)}" else v(@installed_version || @requested_version).to_s end end |