Class: Sprinkle::Installers::Group
- Defined in:
- lib/sprinkle/installers/group.rb
Overview
The user installer helps add groups. You may pass flags as an option.
Example Usage
package :users do
add_group 'webguys', :flags => "--shell /usr/bin/zsh"
verify do
has_group 'webguys'
end
end
Instance Attribute Summary
Attributes inherited from Installer
#delivery, #options, #package, #post, #pre
Instance Method Summary collapse
-
#initialize(package, groupname, options, &block) ⇒ Group
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, groupname, options, &block) ⇒ Group
:nodoc:
27 28 29 30 |
# File 'lib/sprinkle/installers/group.rb', line 27 def initialize(package, groupname, , &block) #:nodoc: super package, , &block @groupname = groupname end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sprinkle::Installers::Installer