Sha256: 7807a4dbd22c14cfaf34df59bed9bc7614f199385e581d3120a6bad86dd5c106

Contents?: true

Size: 1.17 KB

Versions: 10

Compression:

Stored size: 1.17 KB

Contents

module HammerCLIForemanRemoteExecution
  class RemoteExecutionFeature < HammerCLIForeman::Command
    resource :remote_execution_features
    desc _('Manage remote execution features')

    class ListCommand < HammerCLIForeman::ListCommand
      output do
        field :id, _('ID')
        field :name, _('Name')
        field :description, _('Description')
        field :job_template_name, _('Job template name')
      end

      build_options
    end

    class InfoCommand < HammerCLIForeman::InfoCommand
      output do
        field :id, _('ID')
        field :label, _('Label')
        field :name, _('Name')
        field :description, _('Description')
        field :job_template_name, _('Job template name')
        field :job_template_id, _('Job template ID')
      end

      build_options
    end

    class UpdateCommand < HammerCLIForeman::UpdateCommand
      success_message _('Remote execution feature updated')
      failure_message _('Could not update the remote execution feature')

      build_options
    end

    autoload_subcommands
  end

  HammerCLI::MainCommand.subcommand 'remote-execution-feature', _('Manage remote execution features'), RemoteExecutionFeature
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hammer_cli_foreman_remote_execution-0.3.0 lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb
hammer_cli_foreman_remote_execution-0.2.3 lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb
hammer_cli_foreman_remote_execution-0.2.2 lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb
hammer_cli_foreman_remote_execution-0.2.1 lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb
hammer_cli_foreman_remote_execution-0.2.0 lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb
hammer_cli_foreman_remote_execution-0.1.2 lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb
hammer_cli_foreman_remote_execution-0.1.1 lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb
hammer_cli_foreman_remote_execution-0.1.0 lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb
hammer_cli_foreman_remote_execution-0.0.6 lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb
hammer_cli_foreman_remote_execution-0.0.5 lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb