Class: Role

Inherits:
Object show all
Includes:
DataMapper::Resource
Defined in:
lib/fabric/role.rb

Instance Method Summary collapse

Instance Method Details

#narrate_asObject



13
14
15
# File 'lib/fabric/role.rb', line 13

def narrate_as
  "role - #{self.name}"
end

#update_user_access!Object



17
18
19
20
21
22
23
# File 'lib/fabric/role.rb', line 17

def update_user_access!
  narrate "Updating role"
  self.servers.each do |server|
    server.install_accounts!
    server.remove_dead_accounts
  end
end