Class: Chef::Knife::ElbListenerAdd

Inherits:
Chef::Knife show all
Includes:
ElbBase, ElbListenerBase
Defined in:
lib/chef/knife/elb_listener_add.rb

Instance Method Summary collapse

Methods included from ElbListenerBase

included

Methods included from ElbBase

included

Instance Method Details

#runObject



29
30
31
32
33
34
35
# File 'lib/chef/knife/elb_listener_add.rb', line 29

def run
  validate!

  response = connection.create_load_balancer_listeners(@name_args.first, build_listeners(config))

  ui.output(Chef::JSONCompat.from_json(response.data[:body].to_json))
end