Sha256: 0a59ea6794a8273d1b41936b18d8f1f31082750cd2d9e7f2d982cde749f8b16a

Contents?: true

Size: 790 Bytes

Versions: 1

Compression:

Stored size: 790 Bytes

Contents

module PuppetForge
  class Error < RuntimeError
    attr_accessor :original
    def initialize(message, original=nil)
      super(message)
      @original = original
    end
  end

  class ExecutionFailure < PuppetForge::Error
  end

  class InvalidPathInPackageError < PuppetForge::Error
    def initialize(options)
      @entry_path = options[:entry_path]
      @directory  = options[:directory]
      super "Attempt to install file into #{@entry_path.inspect} under #{@directory.inspect}"
    end

    def multiline
      <<-MSG.strip
Could not install package
  Package attempted to install file into
  #{@entry_path.inspect} under #{@directory.inspect}.
      MSG
    end
  end

  class ModuleNotFound < PuppetForge::Error
  end

  class ReleaseNotFound < PuppetForge::Error
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puppet_forge-2.0.0 lib/puppet_forge/error.rb