Flowdock
method

imply_options

Importance_2
v7.1.3.2 - Show latest stable - 0 notes - Class: AppBase
  • 1.0.0
  • 1.1.6
  • 1.2.6
  • 2.0.3
  • 2.1.0
  • 2.2.1
  • 2.3.8
  • 3.0.0
  • 3.0.9
  • 3.1.0
  • 3.2.1
  • 3.2.8
  • 3.2.13
  • 4.0.2
  • 4.1.8
  • 4.2.1
  • 4.2.7
  • 4.2.9
  • 5.0.0.1
  • 5.1.7
  • 5.2.3
  • 6.0.0
  • 6.1.3.1
  • 6.1.7.7
  • 7.0.0
  • 7.1.3.2 (0)
  • What's this?
imply_options(option_implications = OPTION_IMPLICATIONS, meta_options: []) private

Options

:meta_options

A list of generator options which only serve to trigger other options. These options should have no other effects, and will be treated transparently when revoking other options.

For example: –minimal implies both –skip-active-job and –skip-active-storage. Also, –skip-active-job by itself implies –skip-active-storage. If –skip-active-job is explicitly specified, –no-skip-active-storage should raise an error. But, if only –minimal is specified, –no-skip-active-storage should “undo” the implied –skip-active-job. This can be accomplished by passing meta_options: [:minimal].

In contrast, –api is not a meta option because it does other things besides implying options such as –skip-asset-pipeline. (And so –api with –no-skip-asset-pipeline should raise an error.)

Show source
Register or log in to add new notes.