Sha256: 654491335ea3df66212ccb737925cf18505c2ab559d5e458e278cc6341ff11aa

Contents?: true

Size: 442 Bytes

Versions: 3

Compression:

Stored size: 442 Bytes

Contents

module RevealCK
  class Builder

    def register_tasks
      raise "Subclasses must implement register_tasks"
    end

    def add_task(description, action)
      @tasks << BuildTask.new({
                                description: description,
                                action: action
                              })
    end

    def build!
      register_tasks unless @tasks
      @tasks.each {|task| task.go!}
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
reveal-ck-0.1.5 lib/reveal-ck/builder.rb
reveal-ck-0.1.4 lib/reveal-ck/builder.rb
reveal-ck-0.1.3 lib/reveal-ck/builder.rb