Class: Chef::Knife::ServerRestore

Inherits:
Chef::Knife show all
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

#runObject



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