Class: Chef::Knife::ElbCreate

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

Instance Method Summary collapse

Methods included from ElbListenerBase

included

Methods included from ElbBase

included

Instance Method Details

#runObject



35
36
37
38
39
40
41
42
43
44
45
# File 'lib/chef/knife/elb_create.rb', line 35

def run
  validate!

  response = connection.create_load_balancer(
      config[:availability_zones],
      @name_args.first,
      build_listeners(config)
  )

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