Sha256: 3f2489f60d5ac6b48fe167fe70331b2e11e88f80e54ae21791a79bb981e02947

Contents?: true

Size: 422 Bytes

Versions: 7

Compression:

Stored size: 422 Bytes

Contents

module CapUtil

  class DeployHalted < RuntimeError
    def backtrace; []; end
  end

  def self.halt(msg='deploy halted')
    raise CapUtil::DeployHalted, color(msg, :bold, :yellow)
  end

  module Halt

    def self.included(receiver)
      receiver.send(:extend,  HaltMethods)
      receiver.send(:include, HaltMethods)
    end

    module HaltMethods
      def halt(*args); CapUtil.halt(*args); end
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cap-util-0.4.0 lib/cap-util/halt.rb
cap-util-0.3.0 lib/cap-util/halt.rb
cap-util-0.2.1 lib/cap-util/halt.rb
cap-util-0.2.0 lib/cap-util/halt.rb
cap-util-0.1.2 lib/cap-util/halt.rb
cap-util-0.1.1 lib/cap-util/halt.rb
cap-util-0.1.0 lib/cap-util/halt.rb