Parent

PuppetLint::Plugins

Public: Various methods that implement puppet-lint’s plugin system

Examples

PuppetLint::Plugins.load_spec_helper

Public Class Methods

load_from_gems() click to toggle source

Internal: Find any gems containing puppet-lint plugins and load them.

Returns nothing.

# File lib/puppet-lint/plugins.rb, line 13
def self.load_from_gems
  gem_directories.select { |path|
    (path + 'puppet-lint/plugins').directory?
  }.each do |gem_path|
    Dir["#{(gem_path + 'puppet-lint/plugins').to_s}/*.rb"].each do |file|
      load file
    end
  end
end
load_spec_helper() click to toggle source

Public: Load the puppet-lint spec_helper.rb

Returns nothings.

# File lib/puppet-lint/plugins.rb, line 26
def self.load_spec_helper
  gemspec = gemspecs.select { |spec| spec.name == 'puppet-lint' }.first
  load Pathname.new(gemspec.full_gem_path) + 'spec/spec_helper.rb'
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.