Class: Terraspace::Builder::Allow::Stack
- Defined in:
- lib/terraspace/builder/allow/stack.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/stack.rb', line 13 def check_value @mod.name end |
#message ⇒ Object
interface method
4 5 6 7 8 9 10 |
# File 'lib/terraspace/builder/allow/stack.rb', line 4 def = [] << "This stack is not allowed to be used for TS_ENV=#{Terraspace.env}" << "Allow stacks: #{allows.join(', ')}" if allows << "Deny stacks: #{denys.join(', ')}" if denys .join("\n") end |