Module: Stardust::Instance
- Included in:
- Stardust
- Defined in:
- lib/stardust/instance.rb
Instance Method Summary collapse
Instance Method Details
#development? ⇒ Boolean
20 21 22 |
# File 'lib/stardust/instance.rb', line 20 def development? instance == :development end |
#instance ⇒ Object
4 5 6 7 8 9 10 |
# 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? ⇒ Boolean
12 13 14 |
# File 'lib/stardust/instance.rb', line 12 def production? instance == :production end |
#staging? ⇒ Boolean
16 17 18 |
# File 'lib/stardust/instance.rb', line 16 def staging? instance == :staging end |