class Ec2ssh::Ec2Instances::InstanceWrapper::TagsWrapper

Public Class Methods

new(tags) click to toggle source
# File lib/ec2ssh/ec2_instances.rb, line 11
def initialize(tags)
  @tags = tags
end

Public Instance Methods

[](key) click to toggle source

simulate

Calls superclass method
# File lib/ec2ssh/ec2_instances.rb, line 16
        def [](key)
          if key.is_a? ::String
            raise DotfileValidationError, <<-MSG
`tags[String]` syntax in the dotfile has been deleted since v4.0. Use `tag(String)` instead.
See: https://github.com/mirakui/ec2ssh#how-to-upgrade-from-3x
            MSG
          end
          super
        end

Private Instance Methods

method_missing(name, *args, &block) click to toggle source
# File lib/ec2ssh/ec2_instances.rb, line 28
def method_missing(name, *args, &block)
  @tags.public_send(name, *args, &block)
end
respond_to_missing?(symbol, include_private) click to toggle source
# File lib/ec2ssh/ec2_instances.rb, line 32
def respond_to_missing?(symbol, include_private)
  @tags.respond_to?(symbol, include_private)
end