Sha256: a59fdfb63345adabf86b8a731227d93001db87bf4f614ec3a1561868e0dd1a1f
Contents?: true
Size: 918 Bytes
Versions: 2
Compression:
Stored size: 918 Bytes
Contents
module ForemanPuppet class ConfigGroupsController < ::ApplicationController include Foreman::Controller::AutoCompleteSearch include ForemanPuppet::Parameters::ConfigGroup before_action :find_resource, only: %i[edit update destroy] helper PuppetclassesHelper def index @config_groups = resource_base_search_and_page end def new @config_group = ForemanPuppet::ConfigGroup.new end def edit end def create @config_group = ForemanPuppet::ConfigGroup.new(config_group_params) if @config_group.save process_success else process_error end end def update if @config_group.update(config_group_params) process_success else process_error end end def destroy if @config_group.destroy process_success else process_error end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_puppet-0.0.2 | app/controllers/foreman_puppet/config_groups_controller.rb |
foreman_puppet-0.0.1 | app/controllers/foreman_puppet/config_groups_controller.rb |