Sha256: be23a81f04ae13cd57fd649d1b4bd71f03aa057e44e1984ca66cf36ad368b3af

Contents?: true

Size: 397 Bytes

Versions: 33

Compression:

Stored size: 397 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? # rubocop:disable Rails/Exit
    end

    module ClassMethods
      def exit_on_failure?
        true
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
hephaestus-0.8.3 lib/hephaestus/exit_on_failure.rb
hephaestus-0.8.2 lib/hephaestus/exit_on_failure.rb
hephaestus-0.8.1 lib/hephaestus/exit_on_failure.rb
hephaestus-0.8.0 lib/hephaestus/exit_on_failure.rb
hephaestus-0.7.7.2 lib/hephaestus/exit_on_failure.rb
hephaestus-0.7.7 lib/hephaestus/exit_on_failure.rb
hephaestus-0.7.6.2 lib/hephaestus/exit_on_failure.rb
hephaestus-0.7.6.1 lib/hephaestus/exit_on_failure.rb
hephaestus-0.7.6 lib/hephaestus/exit_on_failure.rb
hephaestus-0.7.5.3 lib/hephaestus/exit_on_failure.rb
hephaestus-0.7.5.2 lib/hephaestus/exit_on_failure.rb
hephaestus-0.7.5.1 lib/hephaestus/exit_on_failure.rb
hephaestus-0.7.5 lib/hephaestus/exit_on_failure.rb
hephaestus-0.7.4.2 lib/hephaestus/exit_on_failure.rb
hephaestus-0.7.4.1 lib/hephaestus/exit_on_failure.rb
hephaestus-0.7.4 lib/hephaestus/exit_on_failure.rb
hephaestus-0.7.3.1 lib/hephaestus/exit_on_failure.rb
hephaestus-0.7.3 lib/hephaestus/exit_on_failure.rb
hephaestus-0.7.2.5 lib/hephaestus/exit_on_failure.rb
hephaestus-0.7.2.4 lib/hephaestus/exit_on_failure.rb