Sha256: 0d9f0558c6ec0433b18b897894eb7d8db6ad5fb838f13fa9b2e2d2fcd2158b82

Contents?: true

Size: 685 Bytes

Versions: 8

Compression:

Stored size: 685 Bytes

Contents

require 'plugins/pluginator/extensions/conversions'
require 'pre-commit/checks/plugin/config_file'

module PreCommit
  module Checks
    class Plugin
      include Pluginator::Extensions::Conversions

      attr_accessor :pluginator, :config

      def initialize(pluginator, config, list)
        @pluginator = pluginator
        @config     = config
        @list       = list
      end

      def name
        class2string(class2name(self.class))
      end

    private

      def config_file
        @config_file ||= ConfigFile.new(name, config, alternate_config_file)
        @config_file.location
      end

      def alternate_config_file
        ''
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pre-commit-0.19.0 lib/pre-commit/checks/plugin.rb
pre-commit-0.18.0 lib/pre-commit/checks/plugin.rb
pre-commit-0.17.0 lib/pre-commit/checks/plugin.rb
pre-commit-0.16.3 lib/pre-commit/checks/plugin.rb
pre-commit-0.16.2 lib/pre-commit/checks/plugin.rb
pre-commit-0.16.1 lib/pre-commit/checks/plugin.rb
pre-commit-0.16.0 lib/pre-commit/checks/plugin.rb
pre-commit-0.15.0 lib/pre-commit/checks/plugin.rb