Module: AppHelper

Extended by:
T::Sig
Defined in:
lib/frontman/helpers/app_helper.rb

Instance Method Summary collapse

Instance Method Details

#build?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/frontman/helpers/app_helper.rb', line 10

def build?
  Frontman::Config.get(:mode) == 'build'
end

#serve?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/frontman/helpers/app_helper.rb', line 15

def serve?
  !build?
end