Method: Chef::Key#create_key

Defined in:
lib/chef/key.rb

#create_key(arg = nil) ⇒ Object



108
109
110
111
112
113
# File 'lib/chef/key.rb', line 108

def create_key(arg = nil)
  raise Chef::Exceptions::InvalidKeyAttribute, "you cannot set create_key to true if the public_key field exists" if arg == true && !@public_key.nil?

  set_or_return(:create_key, arg,
    kind_of: [TrueClass, FalseClass])
end