Sha256: df2069077fc09c3499fc985534032a0c26d20d638e6adc323732329a8dc6d924

Contents?: true

Size: 671 Bytes

Versions: 8

Compression:

Stored size: 671 Bytes

Contents

module Wordmove
  module Actions
    # Runs after push hooks by invoking the external service
    # Wordmove::Hook
    class RunAfterPushHook
      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(
          :push,
          :after,
          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_after_push_hook.rb
wordmove-6.0.0.alpha.7 lib/wordmove/actions/run_after_push_hook.rb
wordmove-6.0.0.alpha.6 lib/wordmove/actions/run_after_push_hook.rb
wordmove-6.0.0.alpha.5 lib/wordmove/actions/run_after_push_hook.rb
wordmove-6.0.0.alpha.4 lib/wordmove/actions/run_after_push_hook.rb
wordmove-6.0.0.alpha.3 lib/wordmove/actions/run_after_push_hook.rb
wordmove-6.0.0.alpha.2 lib/wordmove/actions/run_after_push_hook.rb
wordmove-6.0.0.alpha.1 lib/wordmove/actions/run_after_push_hook.rb