Sha256: 0caf26563d523acb0711dbd1aae0797a28500d8f963eb1d70874161255910711

Contents?: true

Size: 381 Bytes

Versions: 11

Compression:

Stored size: 381 Bytes

Contents

require 'contracts'
require_relative 'source'

module Fuselage
  module Support
    module Debugging
      include ::Contracts::Core
      include ::Contracts::Builtin
      include Source

      Contract None => Maybe[Or[Bool, String]]
      def debug
        source['debug']
      end

      Contract None => Bool
      def debugging?
        !!debug
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
concourse-fuselage-0.5.8 lib/concourse-fuselage/support/debugging.rb
concourse-fuselage-0.5.7 lib/concourse-fuselage/support/debugging.rb
concourse-fuselage-0.5.2 lib/concourse-fuselage/support/debugging.rb
concourse-fuselage-0.5.1 lib/concourse-fuselage/support/debugging.rb
concourse-fuselage-0.5.0 lib/concourse-fuselage/support/debugging.rb
concourse-fuselage-0.4.1 lib/concourse-fuselage/support/debugging.rb
concourse-fuselage-0.4.0 lib/concourse-fuselage/support/debugging.rb
concourse-fuselage-0.3.2 lib/concourse-fuselage/support/debugging.rb
concourse-fuselage-0.3.1 lib/concourse-fuselage/support/debugging.rb
concourse-fuselage-0.3.0 lib/concourse-fuselage/support/debugging.rb
concourse-fuselage-0.2.0 lib/concourse-fuselage/support/debugging.rb