Sha256: 718dc3af97f48dcc4b1eb0c34b4a3d031d41d45c1aea6a2dcab55867ee736ffb

Contents?: true

Size: 567 Bytes

Versions: 2

Compression:

Stored size: 567 Bytes

Contents

module Danger
  class Dangerfile
    module DSL
      class Plugin
        def initialize(dsl)
          @dsl = dsl
        end

        # Since we have a reference to the DSL containing all the information
        # We need to redirect the self calls to the DSL
        def method_missing(method_sym, *arguments, &_block)
          @dsl.send(method_sym, *arguments)
        end

        def run
          raise "run method must be implemented"
        end

        def self.description
          "Add plugin description here"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
danger-0.7.4 lib/danger/plugin.rb
danger-0.7.3 lib/danger/plugin.rb