Welcome to mirror list, hosted at ThFree Co, Russian Federation.

generic.rb « helpers « lib - gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 09c03e80a4759de0b03d94a5eaeb449ebfdda9fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module Nanoc::Helpers
  module Generic
    #
    # Check if NANOC_ENV is set to production
    #
    def production?
      ENV['NANOC_ENV'] == 'production'
    end

    def omnibus?
      ENV['NANOC_ENV'] == 'omnibus'
    end
  end
end