Sha256: 5b05c68343e82bf5cdc7bd4cb1c64c683d367c147ce0e12d68ee764a4d74af5c

Contents?: true

Size: 270 Bytes

Versions: 12

Compression:

Stored size: 270 Bytes

Contents

require 'contracts'
require 'json'

module Fuselage
  module Support
    module Config
      include ::Contracts::Core
      include ::Contracts::Builtin

      Contract None => Hash
      def config
        @config ||= JSON.load STDIN || {}
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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