Class: Rake::XForge::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rake/contrib/xforge/base.rb

Overview

Base class for XForge tasks

Direct Known Subclasses

NewsPublisher, Release

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project_unix_name, host = ::XForge::RubyForge.new) ⇒ Base

Returns a new instance of Base.



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/rake/contrib/xforge/base.rb', line 8

def initialize(project_unix_name, host=::XForge::RubyForge.new)
  @project_unix_name = project_unix_name
  @host = host

  set_defaults
  
  if(block_given?)
    yield self
    execute
  end
end

Instance Attribute Details

#password=(value) ⇒ Object

Sets the attribute password

Parameters:

  • value

    the value to set the attribute password to.



6
7
8
# File 'lib/rake/contrib/xforge/base.rb', line 6

def password=(value)
  @password = value
end

#user_name=(value) ⇒ Object

Sets the attribute user_name

Parameters:

  • value

    the value to set the attribute user_name to.



6
7
8
# File 'lib/rake/contrib/xforge/base.rb', line 6

def user_name=(value)
  @user_name = value
end