module Stardust::Instance
Public Instance Methods
development?()
click to toggle source
# File lib/stardust/instance.rb, line 20 def development? instance == :development end
instance()
click to toggle source
# File lib/stardust/instance.rb, line 4 def instance if Rails.env == 'production' ENV['INSTANCE']&.to_sym || :production else Rails.env.to_sym end end
production?()
click to toggle source
# File lib/stardust/instance.rb, line 12 def production? instance == :production end
staging?()
click to toggle source
# File lib/stardust/instance.rb, line 16 def staging? instance == :staging end