Class: Kitchen::Terraform::Command::Validate::PostZeroFifteenZero
- Inherits:
-
Object
- Object
- Kitchen::Terraform::Command::Validate::PostZeroFifteenZero
- Defined in:
- lib/kitchen/terraform/command/validate/post_zero_fifteen_zero.rb
Overview
The root module is validated by running a command like the following example:
terraform validate \
[-no-color] \
<directory>
Instance Method Summary collapse
-
#initialize(config:) ⇒ Kitchen::Terraform::Command::Validate
constructor
#initialize prepares a new instance of the class.
-
#to_s ⇒ String
The command with flags.
Constructor Details
#initialize(config:) ⇒ Kitchen::Terraform::Command::Validate
#initialize prepares a new instance of the class.
34 35 36 |
# File 'lib/kitchen/terraform/command/validate/post_zero_fifteen_zero.rb', line 34 def initialize(config:) self.color = ::Kitchen::Terraform::CommandFlag::Color.new enabled: config.fetch(:color) end |
Instance Method Details
#to_s ⇒ String
Returns the command with flags.
39 40 41 42 |
# File 'lib/kitchen/terraform/command/validate/post_zero_fifteen_zero.rb', line 39 def to_s "validate " \ "#{color}" end |