app/controllers/user_workspaces_controller.rb
# helper to redact a workflow on error
helper to redact a workflow on error
helper to redact a workflow on error
def redact_workflow(user, namespace, name, snapshot)
    full_name = [namespace, name, snapshot].join('/')
    begin
      logger.info "Redacting workflow #{full_name}"
      user_fire_cloud_client(user).delete_method(namespace, name, snapshot.to_i)
      logger.info "Redaction complete for #{full_name}"
    rescue => e
      logger.error "Unable to redact #{full_name} due to error: #{e.message}"
    end
  end
def redact_workflow ( user , namespace , name , snapshot ) full_name = [ namespace , name , snapshot ] . join ( '/' ) begin logger . info "Redacting workflow #{full_name}" user_fire_cloud_client ( user ) . delete_method ( namespace , name , snapshot . to_i ) logger . info "Redaction complete for #{full_name}" rescue => e logger . error "Unable to redact #{full_name} due to error: #{e.message}" end end
helper to redact a workflow on error
helper to redact a workflow on error
user
<not_specific>
namespace
<not_specific>
name
<not_specific>
snapshot
<not_specific>