core/rails/app/models/role.rb
# Bind a role to a node in a deployment.
Bind a role to a node in a deployment.
Bind a role to a node in a deployment .
def add_to_node_in_deployment(node,dep)
    Rails.logger.info("Role: Trying to add #{name} to #{node.name}")
    NodeRole.safe_create!(node_id:       node.id,
                          role_id:       id,
                          tenant_id:     node.tenant_id,
                          deployment_id: dep.id)
  end
def add_to_node_in_deployment ( node , dep ) Rails . logger . info ( "Role: Trying to add #{name} to #{node.name}" ) NodeRole . safe_create! ( node_id : node . id , role_id : id , tenant_id : node . tenant_id , deployment_id : dep . id ) end
Bind a role to a node in a deployment.
Bind a role to a node in a deployment .
node
<not_specific>
dep
<not_specific>