Class: Chef::Knife::ServerRestore
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::ServerRestore
- Defined in:
- lib/chef/knife/server_restore.rb
Overview
Restores Chef data primitives from JSON backups to a Chef Server.
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
38 39 40 41 42 43 |
# File 'lib/chef/knife/server_restore.rb', line 38 def run validate! components = name_args.empty? ? COMPONENTS.keys : name_args Array(components).each { |type| restore_components(type) } end |