Sha256: 66c13db3b92c4a7eda285942a9275e2c13cef7dbef153c974f699669d63cb6bb

Contents?: true

Size: 200 Bytes

Versions: 178

Compression:

Stored size: 200 Bytes

Contents

class Array
  def single_resource(id = nil)
    if self.count > 1
      raise Awspec::DuplicatedResourceTypeError, "Duplicated resource type #{id}"
    end
    self.first if self.count == 1
  end
end

Version data entries

178 entries across 178 versions & 4 rubygems

Version Path
awspec-0.87.0 lib/awspec/ext/array.rb
awspec-0.86.0 lib/awspec/ext/array.rb
cmonson_2ndwatch_awspec-0.85.4 lib/awspec/ext/array.rb
awspec-0.85.3 lib/awspec/ext/array.rb
cmonson_2ndwatch_awspec-0.85.3 lib/awspec/ext/array.rb
awspec-0.85.2 lib/awspec/ext/array.rb
awspec-0.85.1 lib/awspec/ext/array.rb
awspec-0.85.0 lib/awspec/ext/array.rb
awspec-0.84.1 lib/awspec/ext/array.rb
awspec-0.84.0 lib/awspec/ext/array.rb
awspec-0.83.0 lib/awspec/ext/array.rb
awspec-0.82.3 lib/awspec/ext/array.rb
awspec-0.82.2 lib/awspec/ext/array.rb
awspec-0.82.1 lib/awspec/ext/array.rb
awspec-0.82.0 lib/awspec/ext/array.rb
awspec-0.81.1 lib/awspec/ext/array.rb
awspec-0.81.0 lib/awspec/ext/array.rb
awspec-0.80.1 lib/awspec/ext/array.rb
awspec-0.80.0 lib/awspec/ext/array.rb
awspec-0.79.2 lib/awspec/ext/array.rb