Sha256: 53485d66dd09284a2fddc9bbd05e46ecbb02915411a06c2d884eded87d131711
Contents?: true
Size: 455 Bytes
Versions: 3
Compression:
Stored size: 455 Bytes
Contents
# frozen_string_literal: true require 'rash/shell/pry' require 'rash/shell/version' module Rash # :no-doc: module Shell module_function def environment ENV['APP_ENV'] || ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development' end def environment_color environment == 'production' ? "\e[38;5;124m" : "\e[38;5;107m" end def environment_with_color "#{environment_color}#{environment}\033[0m" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rash-shell-0.3.1 | lib/rash/shell.rb |
rash-shell-0.3.0 | lib/rash/shell.rb |
rash-shell-0.2.0 | lib/rash/shell.rb |