lib/poolparty/resources/user.rb in auser-poolparty-1.2.10 vs lib/poolparty/resources/user.rb in auser-poolparty-1.2.11

- old
+ new

@@ -3,16 +3,21 @@ class User < Resource dsl_methods :name, # Name of the user :password, # Password for the user - :home, # Home directory + :home, # Home directory + :gid, # primary group for user :authorized_keys default_options({ :shell => "/bin/sh" }) + + def loaded(o={}) + @group = dsl_options.delete(:group) + end def after_create if authorized_keys cloud.has_file :name=>"/home/#{name}/.ssh/authorized_keys", :content => authorized_keys end \ No newline at end of file