class Kitchen::Terraform::Command::Validate::PostZeroFifteenZero
The root module is validated by running a command like the following example:
terraform validate \ [-no-color] \ <directory>
Attributes
color[RW]
Public Class Methods
new(config:)
click to toggle source
initialize prepares a new instance of the class.
@param config [Hash] the configuration of the driver. @option config [Boolean] :color a toggle of colored output from the Terraform
client. @return [Kitchen::Terraform::Command::Validate]
# 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
Public Instance Methods
to_s()
click to toggle source
@return [String] the command with flags.
# File lib/kitchen/terraform/command/validate/post_zero_fifteen_zero.rb, line 39 def to_s "validate " \ "#{color}" end