Sha256: 2b0ddab40473870c246aa5c3f573cbf8c293667f6e5b80dbd8fe1d5a5dbf16ae

Contents?: true

Size: 481 Bytes

Versions: 1

Compression:

Stored size: 481 Bytes

Contents

class CommandOne
  include SimpleService

  command :modify_foo_bar

  def modify_foo_bar(foo:, bar:, command_one_success:, command_two_success:)
    modified_foo = "modified #{foo}"
    modified_bar = "modified #{bar}"

    if command_one_success
      success(
        modified_foo: modified_foo,
        modified_bar: modified_bar,
        command_two_success: command_two_success,
      )
    else
      failure(message: 'stuff went wrong with command one')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple_service-2.1.0 spec/support/command_one.rb