Sha256: 2bc616536ba256527b802b64bc68cf177ed9b0b0772ec1c41c701bb3a4608b58

Contents?: true

Size: 601 Bytes

Versions: 16

Compression:

Stored size: 601 Bytes

Contents

module HammerCLIForeman
  class PingCommand < HammerCLIForeman::Command
      resource :ping

      class ForemanCommand < HammerCLIForeman::Command
        action :ping
        command_name 'foreman'

        output do
          from 'foreman' do
            field :database, _('database'), Fields::Label do
              field :active, _('Status')
              field :duration_ms, _('Server Response')
            end
          end
        end

        extend_with(HammerCLIForeman::CommandExtensions::Ping.new)
      end

    self.default_subcommand = 'foreman'
    autoload_subcommands
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
hammer_cli_foreman-2.1.3 lib/hammer_cli_foreman/ping.rb
hammer_cli_foreman-2.2.0 lib/hammer_cli_foreman/ping.rb
hammer_cli_foreman-2.1.2 lib/hammer_cli_foreman/ping.rb
hammer_cli_foreman-2.1.1 lib/hammer_cli_foreman/ping.rb
hammer_cli_foreman-2.1.0 lib/hammer_cli_foreman/ping.rb
hammer_cli_foreman-2.0.2 lib/hammer_cli_foreman/ping.rb
hammer_cli_foreman-2.0.1 lib/hammer_cli_foreman/ping.rb
hammer_cli_foreman-2.0.0 lib/hammer_cli_foreman/ping.rb
hammer_cli_foreman-0.19.7 lib/hammer_cli_foreman/ping.rb
hammer_cli_foreman-0.19.6 lib/hammer_cli_foreman/ping.rb
hammer_cli_foreman-0.19.5 lib/hammer_cli_foreman/ping.rb
hammer_cli_foreman-0.19.4 lib/hammer_cli_foreman/ping.rb
hammer_cli_foreman-0.19.3 lib/hammer_cli_foreman/ping.rb
hammer_cli_foreman-0.19.2 lib/hammer_cli_foreman/ping.rb
hammer_cli_foreman-0.19.1 lib/hammer_cli_foreman/ping.rb
hammer_cli_foreman-0.19.0 lib/hammer_cli_foreman/ping.rb