Sha256: 599452ebfa250d00098967f860623efbe70a70615b2b2a1876f90b1d5c4cb3f3

Contents?: true

Size: 368 Bytes

Versions: 5

Compression:

Stored size: 368 Bytes

Contents

# typed: false
# frozen_string_literal: true

require "active_support/concern"
require "English"

module Hephaestus
  module ExitOnFailure
    extend ActiveSupport::Concern

    def bundle_command(*)
      super
      exit(false) if $CHILD_STATUS.exitstatus.nonzero?
    end

    module ClassMethods
      def exit_on_failure?
        true
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hephaestus-0.5.0 lib/hephaestus/exit_on_failure.rb
hephaestus-0.4.0 lib/hephaestus/exit_on_failure.rb
hephaestus-0.3.1 lib/hephaestus/exit_on_failure.rb
hephaestus-0.2.3 lib/hephaestus/exit_on_failure.rb
hephaestus-0.2.2 lib/hephaestus/exit_on_failure.rb