Sha256: ef7ff0c4140c0923b31243d69c1414482257032c3e4380d82b9ce7967c0e16e3

Contents?: true

Size: 573 Bytes

Versions: 9

Compression:

Stored size: 573 Bytes

Contents

module Ufo
  class Tasks < Command
    autoload :Builder, 'ufo/tasks/builder'
    autoload :Register, 'ufo/tasks/register'

    desc "build", "builds task definitions"
    long_desc Help.text("tasks:build")
    option :pretty, type: :boolean, default: true, desc: "Pretty format the json for the task definitions"
    def build
      Tasks::Builder.new(options).build
    end

    desc "register", "register all built task definitions in ufo/output"
    long_desc Help.text("tasks:register")
    def register
      Tasks::Register.register(:all, options)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ufo-3.1.2 lib/ufo/tasks.rb
ufo-3.1.1 lib/ufo/tasks.rb
ufo-3.1.0 lib/ufo/tasks.rb
ufo-3.0.1 lib/ufo/tasks.rb
ufo-3.0.0 lib/ufo/tasks.rb
ufo-2.3.0 lib/ufo/tasks.rb
ufo-2.2.2 lib/ufo/tasks.rb
ufo-2.2.1 lib/ufo/tasks.rb
ufo-2.2.0 lib/ufo/tasks.rb