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.17.0 lib/puppet/module_tool/errors/base.rb
puppet-7.17.0-x86-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-7.17.0-x64-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-7.17.0-universal-darwin lib/puppet/module_tool/errors/base.rb
puppet-6.27.0 lib/puppet/module_tool/errors/base.rb
puppet-6.27.0-x86-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-6.27.0-x64-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-6.27.0-universal-darwin lib/puppet/module_tool/errors/base.rb
puppet-7.16.0 lib/puppet/module_tool/errors/base.rb
puppet-7.16.0-x86-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-7.16.0-x64-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-7.16.0-universal-darwin lib/puppet/module_tool/errors/base.rb
puppet-7.15.0 lib/puppet/module_tool/errors/base.rb
puppet-7.15.0-x86-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-7.15.0-x64-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-7.15.0-universal-darwin lib/puppet/module_tool/errors/base.rb
puppet-6.26.0 lib/puppet/module_tool/errors/base.rb
puppet-6.26.0-x86-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-6.26.0-x64-mingw32 lib/puppet/module_tool/errors/base.rb
puppet-6.26.0-universal-darwin lib/puppet/module_tool/errors/base.rb