Environments manager
Add this line to your application's Gemfile:
gem 'armadillo', github: 'petlove/armadillo'
Run this code bellow to set settings in config/environment.rb
:
rails generate armadillo:install
These are the available settings:
Armadillo.configure do |config|
config.rails_config = Rails.application.config
config.position = :right
config.envs = [
{ name: :production, condition: Rails.env.production? && ENV['APP_ENV'] == 'production', show: false },
{ name: :staging, condition: Rails.env.production? && ENV['APP_ENV'] == 'staging', show: true },
{ name: :development, condition: Rails.env.production? && ENV['APP_ENV'] == 'development', show: true },
{ name: :local, condition: Rails.env.development? && ENV['APP_ENV'] == 'local', show: true },
{ name: :test, condition: ENV['APP_ENV'].match?(/test|codefresh|cf/), show: false }
]
end
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
The gem is available as open source under the terms of the MIT License.