api_helper.rb
def app_ocid(app_name:, compartment_name:)
  apps(compartment_name: compartment_name)
    .select { |a| a.display_name == app_name }
    .fetch(0) { raise "Could not find application #{app_name}" }
    .id
end
# Returns the OCID of the named application in the named compartment
Returns the OCID of the named application in the named compartment
Returns the OCID of the named application in the named compartment
def app_ocid(app_name:, compartment_name:)
  apps(compartment_name: compartment_name)
    .select { |a| a.display_name == app_name }
    .fetch(0) { raise "Could not find application #{app_name}" }
    .id
end
def app_ocid ( app_name : , compartment_name : ) apps ( compartment_name : compartment_name ) . select { | a | a . display_name == app_name } . fetch ( 0 ) { raise "Could not find application #{app_name}" } . id end
Returns the OCID of the named application in the named compartment
Returns the OCID of the named application in the named compartment
app_name
compartment_name