Sha256: fe6d48a6066be5d9633c74624e45634ccfdcd0aebd7e3d24281046b1b93baede

Contents?: true

Size: 850 Bytes

Versions: 20

Compression:

Stored size: 850 Bytes

Contents

Hammer CLI Foreman Tasks
========================

Showing of the tasks (results and progress) in the Hammer CLI.

Allows waiting for async task after the task was triggered.

Usage:

```ruby
class MyAsyncCommand < HammerCLIForemanTasks::AsyncCommand
  action "run"
  command_name "run"

  success_message "Task started with id %{id}s"
  failure_message "Could not run the task"

  build_options
end
```

Also, there is `HammerCLIForemanTasks::Helper` with helper methods, if
the `AsyncCommand` class doesn't fit for the case.

The `AsyncCommand` comes with `--async` option so that the command
doesn't wait for the task to finish.

There is a `task` command with `progress` action available, showing the
progress for action based on id.

Usage:

    # wait for task to finish (showing the progress)
    hammer task progress --id 1234-5678-7654-3210

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
hammer_cli_foreman_tasks-0.0.22 README.md
hammer_cli_foreman_tasks-0.0.21 README.md
hammer_cli_foreman_tasks-0.0.20 README.md
hammer_cli_foreman_tasks-0.0.19 README.md
hammer_cli_foreman_tasks-0.0.18 README.md
hammer_cli_foreman_tasks-0.0.17 README.md
hammer_cli_foreman_tasks-0.0.16 README.md
hammer_cli_foreman_tasks-0.0.15 README.md
hammer_cli_foreman_tasks-0.0.14 README.md
hammer_cli_foreman_tasks-0.0.13 README.md
hammer_cli_foreman_tasks-0.0.12 README.md
hammer_cli_foreman_tasks-0.0.11 README.md
hammer_cli_foreman_tasks-0.0.10 README.md
hammer_cli_foreman_tasks-0.0.9 README.md
hammer_cli_foreman_tasks-0.0.8 README.md
hammer_cli_foreman_tasks-0.0.7 README.md
hammer_cli_foreman_tasks-0.0.6 README.md
hammer_cli_foreman_tasks-0.0.5 README.md
hammer_cli_foreman_tasks-0.0.4 README.md
hammer_cli_foreman_tasks-0.0.3 README.md