Sha256: 34b709f3b16604734a88d423c4f24ba169f65c02373ce9db07fcb8eb6a88e870

Contents?: true

Size: 378 Bytes

Versions: 8

Compression:

Stored size: 378 Bytes

Contents

module Rundock
  module Hook
    class Base
      HookNotImplementedError = Class.new(NotImplementedError)

      attr_reader :name
      attr_reader :contents

      def initialize(name, contents = {})
        @name = name
        @contents = contents
      end

      def hook(log_buffer = [], node_info = {})
        raise HookNotImplementedError
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rundock-0.4.8 lib/rundock/hook/base.rb
rundock-0.4.7 lib/rundock/hook/base.rb
rundock-0.4.6 lib/rundock/hook/base.rb
rundock-0.4.4 lib/rundock/hook/base.rb
rundock-0.4.3 lib/rundock/hook/base.rb
rundock-0.4.2 lib/rundock/hook/base.rb
rundock-0.4.1 lib/rundock/hook/base.rb
rundock-0.4.0 lib/rundock/hook/base.rb