diff options
| author | Michael V. O'Brien <michael@reductivelabs.com> | 2007-09-24 20:30:11 -0500 |
|---|---|---|
| committer | Michael V. O'Brien <michael@reductivelabs.com> | 2007-09-24 20:30:11 -0500 |
| commit | f8ab62b212788a4591276c95b5f67217f7517e4e (patch) | |
| tree | d6079582b0678ec68d6f474436ef3eabf8f3008d /lib | |
| parent | 6079348fd5e93a9840fe67f47b6a404f1a26f1c3 (diff) | |
| download | puppet-f8ab62b212788a4591276c95b5f67217f7517e4e.tar.gz puppet-f8ab62b212788a4591276c95b5f67217f7517e4e.tar.xz puppet-f8ab62b212788a4591276c95b5f67217f7517e4e.zip | |
Renamed princs to principals in the k5login type.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/type/k5login.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/puppet/type/k5login.rb b/lib/puppet/type/k5login.rb index 28191a845..2372f658a 100644 --- a/lib/puppet/type/k5login.rb +++ b/lib/puppet/type/k5login.rb @@ -5,12 +5,12 @@ Puppet::Type.newtype(:k5login) do @doc = "Manage the .k5login file for a user. Specify the full path to the .k5login file as the name and an array of principals as the - property princs." + property principals." ensurable # Principals that should exist in the file - newproperty(:princs, :array_matching => :all) do + newproperty(:principals, :array_matching => :all) do desc "The principals present in the .k5login file." end @@ -43,7 +43,7 @@ Puppet::Type.newtype(:k5login) do # create the file def create - write(@resource.should(:princs)) + write(@resource.should(:principals)) should_mode = @resource.should(:mode) unless self.mode == should_mode self.mode should_mode @@ -55,8 +55,8 @@ Puppet::Type.newtype(:k5login) do File.unlink(@resource[:name]) end - # Return the princs - def princs + # Return the principals + def principals if File.exists?(@resource[:name]) File.readlines(@resource[:name]).collect { |line| line.chomp } else @@ -64,8 +64,8 @@ Puppet::Type.newtype(:k5login) do end end - # Write the princs out to the k5login file - def princs=(value) + # Write the principals out to the k5login file + def principals=(value) write(value) end |
