Class: Metro::SetupHandlers::ExitIfDryRun
- Inherits:
-
Object
- Object
- Metro::SetupHandlers::ExitIfDryRun
- Defined in:
- lib/setup_handlers/exit_if_dry_run.rb
Overview
If the user has enabled the dry-run flag, this is the point at which the game will exit.
Dry run mode is useful for determine if all dependencies have successfully been met and the source code will load successfully.
Instance Method Summary collapse
Instance Method Details
#setup(options) ⇒ Object
16 17 18 19 20 |
# File 'lib/setup_handlers/exit_if_dry_run.rb', line 16 def setup() return unless .dry_run? puts TemplateMessage.new message: 'dry_run.success' exit end |