Sha256: 4d601ed96788abb6419fb22e9bdbd4edd6b422717917c1764900ad4eb481f160

Contents?: true

Size: 521 Bytes

Versions: 3

Compression:

Stored size: 521 Bytes

Contents

class RemoteExecutionFeaturesController < ::ApplicationController
  before_filter :find_resource, :only => [:show, :update]
  include ::Foreman::Controller::Parameters::RemoteExecutionFeature

  def index
    @remote_execution_features = resource_base.all
  end

  def show; end

  def update
    if @remote_execution_feature.update_attributes(remote_execution_feature_params)
      process_success :object => @remote_execution_feature
    else
      process_error :object => @remote_execution_feature
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_remote_execution-1.3.3 app/controllers/remote_execution_features_controller.rb
foreman_remote_execution-1.3.2 app/controllers/remote_execution_features_controller.rb
foreman_remote_execution-1.3.1 app/controllers/remote_execution_features_controller.rb