Sha256: 868e24b6256390c93dc1b3aa27aacb256c8f42491d7155c1568982ae7d8adeb1

Contents?: true

Size: 718 Bytes

Versions: 3

Compression:

Stored size: 718 Bytes

Contents

build
=====

Establish a set of commands that can be enabled/disabled together to allow for customized builds. See :doc:`/build_groups` for ways to use this effectively.

Required Arguments
------------------

.. note::

  This is an argument, not an option like most DSL methods. See example below.

group
  default: ``:all``

  The name of the build group. Convention is to use a Ruby symbol.


&block
  When this group is enabled (and only ``:all`` is enabled by default), then this block is executed. Otherwise, the block is ignored.


Examples
--------

Use group to organize your Squib code into build groups::

  Squib::Deck.new do
    build :pnp do
      save_pdf
    end
  end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
squib-0.12.0 docs/dsl/build.rst
squib-0.11.0 docs/dsl/build.rst
squib-0.10.0 docs/dsl/build.rst