Class: Sod::Prefabs::Actions::DryRun
- Defined in:
- lib/sod/prefabs/actions/dry_run.rb
Overview
Displays help (usage) information.
Instance Attribute Summary
Attributes inherited from Action
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(settings: Struct.new(:dry_run).new(dry_run: false)) ⇒ DryRun
constructor
A new instance of DryRun.
Methods inherited from Action
ancillary, default, description, inherited, #inspect, on, #to_proc
Constructor Details
#initialize(settings: Struct.new(:dry_run).new(dry_run: false)) ⇒ DryRun
Returns a new instance of DryRun.
12 13 14 15 |
# File 'lib/sod/prefabs/actions/dry_run.rb', line 12 def initialize(settings: Struct.new(:dry_run).new(dry_run: false), **) super(**) @settings = settings end |
Instance Method Details
#call ⇒ Object
17 |
# File 'lib/sod/prefabs/actions/dry_run.rb', line 17 def call = settings.dry_run = true |