Class List Method List File List

# Class: VertxShell::Process

Inherits:
  Object
  - Object
  - VertxShell::Process
  show all
Defined in:
  /Users/julien/java/vertx-aggregator/modules/vertx-shell/src/main/resources/vertx-shell/process.rb

## Overview

A process managed by the shell.

## Instance Method Summary (collapse)

- - (void) execute(context = nil)
  Execute the process in the given context.

## Instance Method Details

### - (`void`) execute(context = nil)

This method returns an undefined value.

Execute the process in the given context.

Parameters:

- context (`::VertxShell::ProcessContext`) (defaults to: `nil`) —
  the context

Raises:

- (`ArgumentError`)

    20
    21
    22
    23
    24
    25
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-shell/src/main/resources/vertx-shell/process.rb', line 20

    def execute(context=nil)
      if context.class.method_defined?(:j_del) && !block_given?
        return @j_del.java_method(:execute, [Java::IoVertxExtShellProcess::ProcessContext.java_class]).call(context.j_del)
      end
      raise ArgumentError, "Invalid arguments when calling execute(context)"
    end