Sha256: 529f9cc7ea08e57938dafbb5b6b631cb1b7a0b518894e6d64f682b3c723d987e

Contents?: true

Size: 674 Bytes

Versions: 8

Compression:

Stored size: 674 Bytes

Contents

module Wordmove
  module Actions
    # Runs before pull hooks by invoking the external service
    # Wordmove::Hook
    class RunBeforePullHook
      extend ::LightService::Action
      include Wordmove::Actions::Helpers

      expects :movefile,
              :cli_options

      # @!method execute
      #   @param movefile [Wordmove::Movefile]
      #   @param cli_options [Hash]
      #   @return [LightService::Context] Action's context
      executed do |context|
        Wordmove::Hook.run(
          :pull,
          :before,
          movefile: context.movefile,
          simulate: simulate?(cli_options: context.cli_options)
        )
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wordmove-6.0.0.alpha.8 lib/wordmove/actions/run_before_pull_hook.rb
wordmove-6.0.0.alpha.7 lib/wordmove/actions/run_before_pull_hook.rb
wordmove-6.0.0.alpha.6 lib/wordmove/actions/run_before_pull_hook.rb
wordmove-6.0.0.alpha.5 lib/wordmove/actions/run_before_pull_hook.rb
wordmove-6.0.0.alpha.4 lib/wordmove/actions/run_before_pull_hook.rb
wordmove-6.0.0.alpha.3 lib/wordmove/actions/run_before_pull_hook.rb
wordmove-6.0.0.alpha.2 lib/wordmove/actions/run_before_pull_hook.rb
wordmove-6.0.0.alpha.1 lib/wordmove/actions/run_before_pull_hook.rb