Class: Terraspace::Builder::Allow::Env
- Defined in:
- lib/terraspace/builder/allow/env.rb
Instance Method Summary collapse
-
#check_value ⇒ Object
interface method.
-
#message ⇒ Object
interface method.
Methods inherited from Base
#allowed?, #allows, #check!, #denys, #initialize
Methods included from App::CallableOption::Concern
Constructor Details
This class inherits a constructor from Terraspace::Builder::Allow::Base
Instance Method Details
#check_value ⇒ Object
interface method
13 14 15 |
# File 'lib/terraspace/builder/allow/env.rb', line 13 def check_value Terraspace.env end |
#message ⇒ Object
interface method
4 5 6 7 8 9 10 |
# File 'lib/terraspace/builder/allow/env.rb', line 4 def = [] << "This env is not allowed to be used: TS_ENV=#{Terraspace.env}" << "Allow envs: #{allows.join(', ')}" if allows << "Deny envs: #{denys.join(', ')}" if denys .join("\n") end |