Sha256: 5b923226a648bb11472c6bb2e9ca7dac37e185bc086899c781d275178520daf6

Contents?: true

Size: 356 Bytes

Versions: 786

Compression:

Stored size: 356 Bytes

Contents

module Puppet::ModuleTool::Errors
  class ModuleToolError < Puppet::Error
    def v(version)
      (version || '???').to_s.sub(/^(?=\d)/, 'v')
    end

    def vstring
      if @action == :upgrade
        "#{v(@installed_version)} -> #{v(@requested_version)}"
      else
        "#{v(@installed_version || @requested_version)}"
      end
    end
  end
end

Version data entries

786 entries across 786 versions & 4 rubygems

Version Path
puppet-3.0.1.rc1 lib/puppet/module_tool/errors/base.rb
puppet-3.0.0 lib/puppet/module_tool/errors/base.rb
puppet-3.0.0.rc8 lib/puppet/module_tool/errors/base.rb
puppet-3.0.0.rc7 lib/puppet/module_tool/errors/base.rb
puppet-3.0.0.rc5 lib/puppet/module_tool/errors/base.rb
puppet-3.0.0.rc4 lib/puppet/module_tool/errors/base.rb