Sha256: 0182c894522268aea66a7b4246f974948df29766fc1aeeb54b19137379670112
Contents?: true
Size: 507 Bytes
Versions: 6
Compression:
Stored size: 507 Bytes
Contents
module Metacrunch class Command attr_reader :shell attr_reader :options attr_reader :params def initialize(shell, options = {}, params = []) @shell = shell @options = options @params = params end def pre_perform # can be implemented in sub-class end def perform raise NotImplementedError, "You must implement .perform() in your command sub-class" end def post_perform # can be implemented in sub-class end end end
Version data entries
6 entries across 6 versions & 1 rubygems