Sha256: 52471a6300878969478e86d6c9992e0684997786d12dfab13146766441c61d9f

Contents?: true

Size: 672 Bytes

Versions: 56

Compression:

Stored size: 672 Bytes

Contents

module Awspec::Helper
  module Finder
    module Batch
      def find_batch_compute_environment(name)
        res = batch_client.describe_compute_environments(compute_environments: [name], max_results: 1)
        res.compute_environments[0] if res.compute_environments
      end

      def find_batch_job_definition(name)
        res = batch_client.describe_job_definitions(job_definitions: [name], max_results: 1)
        res.job_definitions[0] if res.job_definitions
      end

      def find_batch_job_queue(name)
        res = batch_client.describe_job_queues(job_queues: [name], max_results: 1)
        res.job_queues[0] if res.job_queues
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 3 rubygems

Version Path
cthiesfork-awspec-1.2.2 lib/awspec/helper/finder/batch.rb
cthiesfork-awspec-1.2.1 lib/awspec/helper/finder/batch.rb
awspec-1.18.5 lib/awspec/helper/finder/batch.rb
cthiesfork-awspec-1.2.0 lib/awspec/helper/finder/batch.rb
cthiesfork-awspec-1.1.0 lib/awspec/helper/finder/batch.rb
cthiesfork-awspec-1.0.0 lib/awspec/helper/finder/batch.rb
awspec-1.18.4 lib/awspec/helper/finder/batch.rb
awspec-1.18.3 lib/awspec/helper/finder/batch.rb
awspec-1.18.2 lib/awspec/helper/finder/batch.rb
awspec-1.18.1 lib/awspec/helper/finder/batch.rb
awspec-1.18.0 lib/awspec/helper/finder/batch.rb
awspec-1.17.4 lib/awspec/helper/finder/batch.rb
awspec-1.17.3 lib/awspec/helper/finder/batch.rb
awspec-1.17.2 lib/awspec/helper/finder/batch.rb
awspec-1.17.1 lib/awspec/helper/finder/batch.rb
awspec-1.17.0 lib/awspec/helper/finder/batch.rb
awspec-1.16.1 lib/awspec/helper/finder/batch.rb
awspec-1.16.0 lib/awspec/helper/finder/batch.rb
awspec-1.15.3 lib/awspec/helper/finder/batch.rb
awspec-1.15.2 lib/awspec/helper/finder/batch.rb