🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

hammer_cli_foreman_tasks

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hammer_cli_foreman_tasks

bundlerRubygems
Version
0.0.24
Version published
Maintainers
1
Created
Source

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:

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

FAQs

Package last updated on 08 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts