lib/concourse-fuselage/support/build_metadata.rb in concourse-fuselage-0.1.0 vs lib/concourse-fuselage/support/build_metadata.rb in concourse-fuselage-0.1.1

- old
+ new

@@ -4,42 +4,42 @@ module Support module BuildMetadata include ::Contracts::Core include ::Contracts::Builtin - Contract None => Maybe[String] + Contract None => String def build_id ENV.fetch 'BUILD_ID' rescue KeyError STDERR.puts 'Environment is missing BUILD_ID' abort end - Contract None => Maybe[String] + Contract None => String def build_name ENV.fetch 'BUILD_NAME' rescue KeyError STDERR.puts 'Environment is missing BUILD_NAME' abort end - Contract None => Maybe[String] + Contract None => String def build_job_name ENV.fetch 'BUILD_JOB_NAME' rescue KeyError STDERR.puts 'Environment is missing BUILD_JOB_NAME' abort end - Contract None => Maybe[String] + Contract None => String def build_pipeline_name ENV.fetch 'BUILD_PIPELINE_NAME' rescue KeyError STDERR.puts 'Environment is missing BUILD_PIPELINE_NAME' abort end - Contract None => Maybe[String] + Contract None => String def atc_external_url ENV.fetch 'ATC_EXTERNAL_URL' rescue KeyError STDERR.puts 'Environment is missing ATC_EXTERNAL_URL' abort