Sha256: fbba022055206c5449246e3855dc966d1a315a8278a079f78c742c999768d2f3

Contents?: true

Size: 673 Bytes

Versions: 1

Compression:

Stored size: 673 Bytes

Contents

module GitCompound
  module Command
    module Procedure
      # Abstract Procedure class
      #
      class Procedure
        def initialize(_opts)
        end

        # Method with additional messages etc.
        #
        def execute!
          execute
        end

        # Main procedure entry point
        #
        def execute
          raise NotImplementedError
        end

        # Valid options available for this procedure
        # see Element::Option
        #
        def self.options
          {}
        end

        # Name of procedure
        #
        def self.to_s
          name.split('::').last.downcase
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
git_compound-0.2.0 lib/git_compound/command/procedure/procedure.rb