Sha256: ef49594a3216c0b3b94bebe6085cffd0bd49812ca2663253ffa69fa52ffcc31d

Contents?: true

Size: 530 Bytes

Versions: 8

Compression:

Stored size: 530 Bytes

Contents

# Support for checking syntax of Puppetfile
class Onceover
  module CodeQuality
    module Puppetfile

      def self.puppetfile
        status = true
        if File.exist?("Puppetfile")
          CodeQuality::Formatter.start_test("Puppetfile")
          output, ok = CodeQuality::Executor.run("r10k puppetfile check")

          status &= ok

          CodeQuality::Formatter.end_test(output, ok)
        else
          logger.warn("No Puppetfile found... continuing")
        end

        status
      end

    end
  end
end


Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
onceover-codequality-0.12.0 lib/onceover/codequality/puppetfile.rb
onceover-codequality-0.11.0 lib/onceover/codequality/puppetfile.rb
onceover-codequality-0.10.0 lib/onceover/codequality/puppetfile.rb
onceover-codequality-0.9.0 lib/onceover/codequality/puppetfile.rb
onceover-codequality-0.8.0 lib/onceover/codequality/puppetfile.rb
onceover-codequality-0.7.2 lib/onceover/codequality/puppetfile.rb
onceover-codequality-0.7.1 lib/onceover/codequality/puppetfile.rb
onceover-codequality-0.6.0 lib/onceover/codequality/puppetfile.rb