Class: SleepingKingStudios::Docs::Commands::Installation::InstallWorkflow
- Inherits:
-
Cuprum::Command
- Object
- Cuprum::Command
- SleepingKingStudios::Docs::Commands::Installation::InstallWorkflow
- Defined in:
- lib/sleeping_king_studios/docs/commands/installation/install_workflow.rb
Overview
Installs the GitHub pages CI workflow.
Instance Method Summary collapse
-
#dry_run? ⇒ Boolean
If true, does not apply filesystem changes.
-
#force? ⇒ Boolean
If true, overwrites existing template files.
-
#initialize(**options) ⇒ InstallWorkflow
constructor
A new instance of InstallWorkflow.
-
#verbose? ⇒ Boolean
If true, prints updates to STDOUT.
Constructor Details
#initialize(**options) ⇒ InstallWorkflow
Returns a new instance of InstallWorkflow.
22 23 24 25 26 27 28 |
# File 'lib/sleeping_king_studios/docs/commands/installation/install_workflow.rb', line 22 def initialize(error_stream: $stderr, output_stream: $stdout, **) super() @error_stream = error_stream @output_stream = output_stream @options = end |
Instance Method Details
#dry_run? ⇒ Boolean
Returns if true, does not apply filesystem changes.
31 32 33 |
# File 'lib/sleeping_king_studios/docs/commands/installation/install_workflow.rb', line 31 def dry_run? @options.fetch(:dry_run, false) end |
#force? ⇒ Boolean
Returns if true, overwrites existing template files.
36 37 38 |
# File 'lib/sleeping_king_studios/docs/commands/installation/install_workflow.rb', line 36 def force? @options.fetch(:force, false) end |
#verbose? ⇒ Boolean
Returns if true, prints updates to STDOUT.
41 42 43 |
# File 'lib/sleeping_king_studios/docs/commands/installation/install_workflow.rb', line 41 def verbose? @options.fetch(:verbose, true) end |