Sha256: a6b4b6508feb87812ffe6e198c355c3a0c0969135631b7a7c95e0465c8cfd98c

Contents?: true

Size: 1.13 KB

Versions: 9

Compression:

Stored size: 1.13 KB

Contents

module HammerCLIForemanPuppet
  class ConfigGroup < HammerCLIForemanPuppet::Command
    resource :config_groups

    class ListCommand < HammerCLIForemanPuppet::ListCommand
      output do
        field :id, _('ID')
        field :name, _('Name')
      end

      build_options
    end

    class InfoCommand < HammerCLIForemanPuppet::InfoCommand
      output ListCommand.output_definition do
        HammerCLIForemanPuppet::PuppetReferences.puppetclasses(self)
      end

      build_options
    end

    class CreateCommand < HammerCLIForemanPuppet::CreateCommand
      success_message _('Config group created.')
      failure_message _('Could not create the config group')

      build_options
    end

    class UpdateCommand < HammerCLIForemanPuppet::UpdateCommand
      success_message _('Config group updated.')
      failure_message _('Could not update the config group')

      build_options
    end

    class DeleteCommand < HammerCLIForemanPuppet::DeleteCommand
      success_message _('Config group has been deleted.')
      failure_message _('Could not delete the config group')

      build_options
    end

    autoload_subcommands
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hammer_cli_foreman_puppet-0.1.1 lib/hammer_cli_foreman_puppet/config_group.rb
hammer_cli_foreman_puppet-0.1.0 lib/hammer_cli_foreman_puppet/config_group.rb
hammer_cli_foreman_puppet-0.0.7 lib/hammer_cli_foreman_puppet/config_group.rb
hammer_cli_foreman_puppet-0.0.6 lib/hammer_cli_foreman_puppet/config_group.rb
hammer_cli_foreman_puppet-0.0.5 lib/hammer_cli_foreman_puppet/config_group.rb
hammer_cli_foreman_puppet-0.0.4 lib/hammer_cli_foreman_puppet/config_group.rb
hammer_cli_foreman_puppet-0.0.3 lib/hammer_cli_foreman_puppet/config_group.rb
hammer_cli_foreman_puppet-0.0.2 lib/hammer_cli_foreman_puppet/config_group.rb
hammer_cli_foreman_puppet-0.0.1 lib/hammer_cli_foreman_puppet/config_group.rb