Class: Wordmove::Actions::RunBeforePullHook

Inherits:
Object
  • Object
show all
Extended by:
LightService::Action
Includes:
Helpers
Defined in:
lib/wordmove/actions/run_before_pull_hook.rb

Overview

Runs before pull hooks by invoking the external service Wordmove::Hook

Instance Method Summary collapse

Instance Method Details

#executeLightService::Context

Returns Action’s context.

Parameters:

Returns:

  • (LightService::Context)

    Action’s context



16
17
18
19
20
21
22
23
# File 'lib/wordmove/actions/run_before_pull_hook.rb', line 16

executed do |context|
  Wordmove::Hook.run(
    :pull,
    :before,
    movefile: context.movefile,
    simulate: simulate?(cli_options: context.cli_options)
  )
end