Sha256: 79187a05bc7de2ba469ccf4684fa2e3dfdd3ce6049d27cbf8ef3b85efe53f0ae
Contents?: true
Size: 766 Bytes
Versions: 13
Compression:
Stored size: 766 Bytes
Contents
# frozen_string_literal: true module Awspec::Type class BatchJobQueue < ResourceBase def initialize(jobqueue) super @display_name = jobqueue end def resource_via_client @resource_via_client ||= find_batch_job_queue(@display_name) end def id @id ||= resource_via_client.job_queue_name if resource_via_client end STATES = %w[ENABLED DISABLED] STATES.each do |state| define_method "#{state.downcase}?" do resource_via_client.state == state end end def has_compute_environment_order?(arn, order) resource_via_client.compute_environment_order.each do |res| return true if res.compute_environment == arn && res.order == order end false end end end
Version data entries
13 entries across 13 versions & 1 rubygems