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-7.34.0 lib/puppet/module_tool/errors/base.rb
puppet-7.34.0-x86-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-7.34.0-x64-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-7.34.0-universal-darwin lib/puppet/module_tool/errors/base.rb
puppet-7.33.0 lib/puppet/module_tool/errors/base.rb
puppet-7.33.0-x86-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-7.33.0-x64-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-7.33.0-universal-darwin lib/puppet/module_tool/errors/base.rb
puppet-7.32.1 lib/puppet/module_tool/errors/base.rb
puppet-7.32.1-x86-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-7.32.1-x64-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-7.32.1-universal-darwin lib/puppet/module_tool/errors/base.rb
puppet-7.31.0 lib/puppet/module_tool/errors/base.rb
puppet-7.31.0-x86-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-7.31.0-x64-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-7.31.0-universal-darwin lib/puppet/module_tool/errors/base.rb
puppet-7.30.0 lib/puppet/module_tool/errors/base.rb
puppet-7.30.0-x86-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-7.30.0-x64-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-7.30.0-universal-darwin lib/puppet/module_tool/errors/base.rb