Class: Atlantis::Portal::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/Atlantis/portal/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argumentsObject

Returns the value of attribute arguments.



11
12
13
# File 'lib/Atlantis/portal/service.rb', line 11

def arguments
  @arguments
end

#hostObject

Returns the value of attribute host.



11
12
13
# File 'lib/Atlantis/portal/service.rb', line 11

def host
  @host
end

Instance Method Details

#passwordObject



23
24
25
26
27
28
29
30
31
# File 'lib/Atlantis/portal/service.rb', line 23

def password
  unless (arguments.password.nil?)
    return arguments.password
  end

   = 

  return .password if 
end

#security_accountObject



33
34
35
36
37
# File 'lib/Atlantis/portal/service.rb', line 33

def 
  pw = Security::InternetPassword.find(:server => self.host)

  return pw
end

#teamObject



39
40
41
42
43
# File 'lib/Atlantis/portal/service.rb', line 39

def team
  unless (arguments.team.nil?)
    return arguments.team
  end
end

#usernameObject



13
14
15
16
17
18
19
20
21
# File 'lib/Atlantis/portal/service.rb', line 13

def username
  unless (arguments.username.nil?)
    return arguments.username
  end

   = 

  return .attributes['acct'] if 
end