Sha256: b1e87d88aa27c2db3e5f92b256c5c9a9b6f51ed0818b4a31499afef3aec5477f
Contents?: true
Size: 972 Bytes
Versions: 10
Compression:
Stored size: 972 Bytes
Contents
require 'json' 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 class ReleaseForbidden < PuppetForge::Error def self.from_response(response) body = JSON.parse(response[:body]) new(body["message"]) end end end
Version data entries
10 entries across 10 versions & 1 rubygems