Class: XForge::Host

Inherits:
Object
  • Object
show all
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.(my_user, my_password)
session.release(["pkg/xforge-0.1.gem"], "XForge-0.1")

Direct Known Subclasses

RubyForge, SourceForge

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



14
15
16
# File 'lib/xforge/host.rb', line 14

def name
  @name
end

Instance Method Details

#project(unix_name) ⇒ Object

Returns the Project with the given unix_name.



22
23
24
# File 'lib/xforge/host.rb', line 22

def project(unix_name)
  Project.new(self, unix_name)
end