Class: Chef::Knife::StencilServerCreate

Inherits:
Chef::Knife show all
Includes:
StencilBase
Defined in:
lib/chef/knife/stencil_server_create.rb

Overview

Knife-plugin boilerplate class for the ‘create’ sub-command

Instance Method Summary collapse

Methods included from StencilBase

#build_plugin_klass, #explain, #invoked_as_stencil?, #locate_config_value, #normalize_path, #stencil_root

Methods inherited from Chef::Knife

#config, #merge_configs

Instance Method Details

#runObject



43
44
45
46
# File 'lib/chef/knife/stencil_server_create.rb', line 43

def run
  stencil_node = Chef::Knife::StencilNode.new(locate_config_value(:chef_node_name), config)
  stencil_node.create
end