Class: KnifeTopo::TopoUpdate
- Inherits:
-
TopoCreate
- Object
- Chef::Knife
- TopoBootstrap
- TopoCreate
- KnifeTopo::TopoUpdate
- Defined in:
- lib/chef/knife/topo_update.rb
Overview
knife topo update
Instance Attribute Summary
Attributes included from Loader
Attributes inherited from TopoBootstrap
Instance Method Summary collapse
Methods inherited from TopoCreate
#bootstrap_msgs, #bootstrap_or_update_node, #confirm_and_update_topo, #create_or_update_topo, #initialize, #non_bootstrap_msgs, #processor, #update_nodes, #upload_artifacts, #validate_args
Methods included from Loader
#auto_detect_format, #check_file, #create_topo_bag, #get_local_topo_path, #list_topo_bag, #load_local_topo_or_exit, #load_node_data, #load_topo_from_file_or_exit, #load_topo_from_server, #load_topo_from_server_or_exit, #priority_attrs, #topo_bag_name, #topologies_path
Methods included from NodeUpdateHelper
#do_node_updates, #update_attrs, #update_chef_env, #update_node, #update_node_with_values, #update_runlist, #update_tags
Methods included from CommandHelper
#check_chef_env, #initialize_cmd_args, #most_common, #resource_exists?, #run_cmd
Methods inherited from TopoBootstrap
#bootstrap_msgs, #initialize, #node_bootstrap, #report, #report_msg, #validate_args
Methods included from BootstrapHelper
#attributes_for_bootstrap, #delete_client_node, #run_bootstrap, #setup_bootstrap_args
Constructor Details
This class inherits a constructor from KnifeTopo::TopoCreate
Instance Method Details
#run ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 |
# 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 ⇒ Object
47 48 49 50 51 |
# 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 |