summaryrefslogtreecommitdiff
path: root/lib/chef/knife/user_create.rb
diff options
context:
space:
mode:
authortylercloke <tylercloke@gmail.com>2015-07-01 15:58:05 -0700
committertylercloke <tylercloke@gmail.com>2015-07-06 14:36:02 -0700
commite35250325f6836b464841441d33336c988b8ccc6 (patch)
tree290fea59f69f72ce5d412a313d918cbbce1dd766 /lib/chef/knife/user_create.rb
parent320afd88bb6751b67573af982a0cf5d51a035af7 (diff)
downloadchef-e35250325f6836b464841441d33336c988b8ccc6.tar.gz
Move Chef::OscUser back to Chef::User namespace and new user code to Chef::UserV1.
Also, have Chef::User (formally Chef::OscUser) use API V0 to make requests.
Diffstat (limited to 'lib/chef/knife/user_create.rb')
-rw-r--r--lib/chef/knife/user_create.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/knife/user_create.rb b/lib/chef/knife/user_create.rb
index e73f6be8b6..995573cd03 100644
--- a/lib/chef/knife/user_create.rb
+++ b/lib/chef/knife/user_create.rb
@@ -27,7 +27,7 @@ class Chef
attr_accessor :user_field
deps do
- require 'chef/user'
+ require 'chef/user_v1'
require 'chef/json_compat'
end
@@ -61,11 +61,11 @@ class Chef
banner "knife user create USERNAME DISPLAY_NAME FIRST_NAME LAST_NAME EMAIL PASSWORD (options)"
def user
- @user_field ||= Chef::User.new
+ @user_field ||= Chef::UserV1.new
end
def create_user_from_hash(hash)
- Chef::User.from_hash(hash).create
+ Chef::UserV1.from_hash(hash).create
end
def osc_11_warning