class KnifeTopo::TopoUpdate

knife topo update

Public Instance Methods

run() click to toggle source
# File lib/chef/knife/topo_update.rb, line 35
def run
  validate_args
  load_topo_from_server_or_exit(@topo_name)
  update_topo

  check_chef_env(@topo['chef_environment'])
  upload_artifacts unless config[:disable_upload]
  update_nodes

  report
end
update_topo() click to toggle source
# File lib/chef/knife/topo_update.rb, line 47
def update_topo
  # Load the topology data & update the topology bag
  @topo = load_local_topo_or_exit(@topo_name)
  @topo.save
end