Sha256: 19c3e3b07cba4e8e54a244512fcd998396663e8105d14fd5a49746fbd755e9fa

Contents?: true

Size: 372 Bytes

Versions: 99

Compression:

Stored size: 372 Bytes

Contents

module Albacore
  class CommandFailedError < StandardError

    attr_reader :executable

    attr_reader :output

    def initialize message, executable, output = nil
      super(message)
      @executable = executable
      @output = output
    end

    def message
      s = StringIO.new
      s.puts super
      s.puts output if output
      s.string
    end
  end
end

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
albacore-3.0.1 ./lib/albacore/errors/command_failed_error.rb
albacore-3.0.0.pre.alpha.6 ./lib/albacore/errors/command_failed_error.rb
albacore-3.0.0.pre.alpha.5 ./lib/albacore/errors/command_failed_error.rb
albacore-3.0.0.pre.alpha.4 ./lib/albacore/errors/command_failed_error.rb
albacore-3.0.0.pre.alpha.3 ./lib/albacore/errors/command_failed_error.rb
albacore-3.0.0.pre.alpha.2 ./lib/albacore/errors/command_failed_error.rb
albacore-3.0.0.pre.alpha ./lib/albacore/errors/command_failed_error.rb
albacore-2.8.0 ./lib/albacore/errors/command_failed_error.rb
albacore-2.7.0 ./lib/albacore/errors/command_failed_error.rb
albacore-2.6.8 ./lib/albacore/errors/command_failed_error.rb
albacore-2.6.7 ./lib/albacore/errors/command_failed_error.rb
albacore-2.6.6 ./lib/albacore/errors/command_failed_error.rb
albacore-2.6.4 ./lib/albacore/errors/command_failed_error.rb
albacore-2.6.3 ./lib/albacore/errors/command_failed_error.rb
albacore-2.6.2 ./lib/albacore/errors/command_failed_error.rb
albacore-2.6.1 ./lib/albacore/errors/command_failed_error.rb
albacore-2.6.0 ./lib/albacore/errors/command_failed_error.rb
albacore-2.5.14 ./lib/albacore/errors/command_failed_error.rb
albacore-2.5.13 ./lib/albacore/errors/command_failed_error.rb
albacore-2.5.11 ./lib/albacore/errors/command_failed_error.rb