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) ⇒ Base

Returns a new instance of Base.



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

def initialize(project)
  @project = project

  @changes_file = "CHANGES"
  @version = PKG_VERSION if defined? PKG_VERSION
  
  if(block_given?)
    yield self
    set_defaults
    execute
  end
end

Instance Attribute Details

#changes_fileObject

Returns the value of attribute changes_file.



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

def changes_file
  @changes_file
end

#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