Class: XForge::Host
- Inherits:
-
Object
- Object
- XForge::Host
- Defined in:
- lib/xforge/host.rb
Overview
A Host represents a proxy to a server. Most of the time you don’t want to use this class directly, but rather one of its subclasses. Example:
require 'xforge'
rubyforge = XForge::RubyForge.new
xforge = rubyforge.project('xforge')
session = xforge.login(my_user, my_password)
session.release(["pkg/xforge-0.1.gem"], "XForge-0.1")
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Host
constructor
Create a new Host proxy located at IP
name
. -
#project(unix_name) ⇒ Object
Returns the Project with the given
unix_name
.
Constructor Details
#initialize(name) ⇒ Host
Create a new Host proxy located at IP name
.
17 18 19 |
# File 'lib/xforge/host.rb', line 17 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
14 15 16 |
# File 'lib/xforge/host.rb', line 14 def name @name end |