Class: Sprinkle::Installers::User
- Defined in:
- lib/sprinkle/installers/user.rb
Overview
The user installer add users. You may pass :flags as an option.
Example Usage
package :users do
add_user 'admin', :flags => "--disabled-password"
verify do
has_user 'admin', :in_group => "root"
end
end
Instance Attribute Summary
Attributes inherited from Installer
#delivery, #options, #package, #post, #pre
Instance Method Summary collapse
-
#initialize(package, username, options = {}, &block) ⇒ User
constructor
:nodoc:.
Methods inherited from Installer
#announce, api, #commands_from_block, #defer, #escape_shell_arg, inherited, #install_sequence, #method_missing, #per_host?, #post_process, #process, subclasses, verify_api
Methods included from Sudo
#sudo?, #sudo_cmd, #sudo_stack
Methods included from Attributes
Constructor Details
#initialize(package, username, options = {}, &block) ⇒ User
:nodoc:
32 33 34 35 |
# File 'lib/sprinkle/installers/user.rb', line 32 def initialize(package, username, = {}, &block) #:nodoc: super package, , &block @username = username end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sprinkle::Installers::Installer