Class: Sod::Prefabs::Actions::DryRun

Inherits:
Action
  • Object
show all
Defined in:
lib/sod/prefabs/actions/dry_run.rb

Overview

Displays help (usage) information.

Instance Attribute Summary

Attributes inherited from Action

#record

Instance Method Summary collapse

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

#callObject



17
# File 'lib/sod/prefabs/actions/dry_run.rb', line 17

def call = settings.dry_run = true