api_helper.rb
# Returns the OCID of the named compartment
Returns the OCID of the named compartment
Returns the OCID of the named compartment
def compartment_ocid(compartment_name:)
  compartments
    .select { |c| c.name == compartment_name }
    .fetch(0) { raise "Could not find compartment #{compartment_name}" }
    .id
end
def compartment_ocid ( compartment_name : ) compartments . select { | c | c . name == compartment_name } . fetch ( 0 ) { raise "Could not find compartment #{compartment_name}" } . id end
Returns the OCID of the named compartment
Returns the OCID of the named compartment
compartment_name