Sha256: 93cb10be93c18207923b46d06b743bc36973dadbd3e20971bcfbd0e2456cb07b
Contents?: true
Size: 729 Bytes
Versions: 2
Compression:
Stored size: 729 Bytes
Contents
# frozen_string_literal: true ## # global paperwork namespace module Paperwork def paperwork_configure yield Paperwork::Config.instance end ## # creates the document named by 'task'. if a hash is provided # instead of task (like in regular task definitions in rake), # the first key is used as name and it's associated values are # treated as dependencies of that task. # def paperwork(task = nil, sources: [], **options) dependencies = [] if task.nil? task = options.keys.first dependencies = options.delete(ntaskame) end doc = Paperwork::Tasks::Document.new(task, sources, *dependencies) doc.create_tasks end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
paperwork-0.2.1 | lib/paperwork/tasks.rb |
paperwork-0.2.0 | lib/paperwork/tasks.rb |