2015-09-12 00:01:02 +00:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
# Configure Middleman
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
2015-09-28 03:21:16 +00:00
|
|
|
helpers do
|
|
|
|
def livestream_active?
|
|
|
|
# Must set key for date
|
|
|
|
ENV["LIVESTREAM_ACTIVE"].present?
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-09-17 23:29:25 +00:00
|
|
|
set :base_url, "https://www.nomadproject.io/"
|
2015-09-12 00:01:02 +00:00
|
|
|
|
|
|
|
activate :hashicorp do |h|
|
2015-09-17 23:29:25 +00:00
|
|
|
h.version = ENV["NOMAD_VERSION"]
|
2015-09-28 06:28:53 +00:00
|
|
|
h.bintray_enabled = ENV["BINTRAY_ENABLED"] == "1"
|
2015-09-17 23:29:25 +00:00
|
|
|
h.bintray_repo = "mitchellh/nomad"
|
2015-09-12 00:01:02 +00:00
|
|
|
h.bintray_user = "mitchellh"
|
|
|
|
h.bintray_key = ENV["BINTRAY_API_KEY"]
|
|
|
|
|
|
|
|
h.minify_javascript = false
|
|
|
|
end
|