Class: VagrantPlugins::AwsAlbTargetGroup::Action::AddInstance

Inherits:
Base
  • Object
show all
Defined in:
lib/vagrant-aws-alb-target-group/action/add_instance.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from VagrantPlugins::AwsAlbTargetGroup::Action::Base

Instance Method Details

#call(env) ⇒ Object



8
9
10
11
12
13
# File 'lib/vagrant-aws-alb-target-group/action/add_instance.rb', line 8

def call(env)
  super env do |instance_id, target_group_name|
    @aws.add_instance(instance_id, target_group_name)
    @machine.ui.info("Add instance #{instance_id} to #{target_group_name}.")
  end
end