lib/rordan_gramsay/lint/kitchen_checker.rb
def no_windows_gui?
          @no_windows_gui ||= begin
            if @lines.any? { |line| line =~ /winrm/i }
              @lines.any? { |line| line =~ /^.*(?<!#).*\s+gui:\s+(?:false|no?|off)\s*$/i }
            else
              true
            end
          end
        end
# Just in case default for the box is not set to headless,
# all Windows VMs should have "gui: false" by default
Just in case default for the box is not set to headless,
all Windows VMs should have "gui: false" by default
Just in case default for the box is not set to headless all Windows VMs should have " gui : false " by default
def no_windows_gui?
          @no_windows_gui ||= begin
            if @lines.any? { |line| line =~ /winrm/i }
              @lines.any? { |line| line =~ /^.*(?<!#).*\s+gui:\s+(?:false|no?|off)\s*$/i }
            else
              true
            end
          end
        end
def no_windows_gui? @no_windows_gui ||= begin if @lines . any? { | line | line =~ / winrm /i } @lines . any? { | line | line =~ / ^.*(?<!#).* \s +gui: \s +(?:false|no?|off) \s *$ /i } else true end end end
Just in case default for the box is not set to headless,
all Windows VMs should have "gui: false" by default
Just in case default for the box is not set to headless all Windows VMs should have " gui : false " by default