Class: Chef::Knife::ElbCreate
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::ElbCreate
- Includes:
- ElbBase, ElbListenerBase
- Defined in:
- lib/chef/knife/elb_create.rb
Instance Method Summary collapse
Methods included from ElbListenerBase
Methods included from ElbBase
Instance Method Details
#run ⇒ Object
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 |