Method: VScripts::AWS::EC2#tags_without

Defined in:
lib/vscripts/aws/ec2.rb

#tags_without(list = []) ⇒ Hash

Exclude tags

Parameters:

  • list (Array) (defaults to: [])

    the list of tag keys to be excluded

Returns:

  • (Hash)

    the filtered tags



53
54
55
56
57
58
59
# File 'lib/vscripts/aws/ec2.rb', line 53

def tags_without(list = [])
  hash = all_tags_hash
  list.each do |key|
    hash.delete(key)
  end
  hash
end