Class: PuppetGenerator::PuppetObjects::User
- Inherits:
-
Object
- Object
- PuppetGenerator::PuppetObjects::User
- Includes:
- PuppetGenerator::PuppetHelper
- Defined in:
- lib/puppet_generator/puppet_objects/user.rb
Instance Attribute Summary collapse
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#groupid ⇒ Object
readonly
Returns the value of attribute groupid.
-
#homedir ⇒ Object
readonly
Returns the value of attribute homedir.
-
#module_name ⇒ Object
readonly
Returns the value of attribute module_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#shell ⇒ Object
readonly
Returns the value of attribute shell.
-
#userid ⇒ Object
readonly
Returns the value of attribute userid.
Instance Method Summary collapse
-
#initialize(entry, module_name, class_name) ⇒ User
constructor
A new instance of User.
- #suggested_file_name ⇒ Object
Methods included from PuppetGenerator::PuppetHelper
#puppet_class_name, #puppet_manifest_path, #puppet_module_name, #puppet_module_path
Constructor Details
#initialize(entry, module_name, class_name) ⇒ User
Returns a new instance of User.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/puppet_generator/puppet_objects/user.rb', line 9 def initialize(entry, module_name, class_name) @name = entry[:name] @module_name = module_name @class_name = class_name @userid = entry[:userid] @groupid = entry[:groupid] @shell = entry[:shell] @homedir = entry[:homedir] @provider = entry[:provider] end |
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name.
7 8 9 |
# File 'lib/puppet_generator/puppet_objects/user.rb', line 7 def class_name @class_name end |
#groupid ⇒ Object (readonly)
Returns the value of attribute groupid.
7 8 9 |
# File 'lib/puppet_generator/puppet_objects/user.rb', line 7 def groupid @groupid end |
#homedir ⇒ Object (readonly)
Returns the value of attribute homedir.
7 8 9 |
# File 'lib/puppet_generator/puppet_objects/user.rb', line 7 def homedir @homedir end |
#module_name ⇒ Object (readonly)
Returns the value of attribute module_name.
7 8 9 |
# File 'lib/puppet_generator/puppet_objects/user.rb', line 7 def module_name @module_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/puppet_generator/puppet_objects/user.rb', line 7 def name @name end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
7 8 9 |
# File 'lib/puppet_generator/puppet_objects/user.rb', line 7 def provider @provider end |
#shell ⇒ Object (readonly)
Returns the value of attribute shell.
7 8 9 |
# File 'lib/puppet_generator/puppet_objects/user.rb', line 7 def shell @shell end |
#userid ⇒ Object (readonly)
Returns the value of attribute userid.
7 8 9 |
# File 'lib/puppet_generator/puppet_objects/user.rb', line 7 def userid @userid end |
Instance Method Details
#suggested_file_name ⇒ Object
21 22 23 |
# File 'lib/puppet_generator/puppet_objects/user.rb', line 21 def suggested_file_name puppet_manifest_path( name ) end |