Class: Newjs::Rubyforge

Inherits:
Object
  • Object
show all
Defined in:
lib/newjs/rubyforge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRubyforge

Returns a new instance of Rubyforge.



8
9
10
11
# File 'lib/newjs/rubyforge.rb', line 8

def initialize
  @full_name = rubyforge.userconfig['full_name'] || ENV['NAME']  || 'FIXME full name'
  @email     = rubyforge.userconfig['email']     || ENV['EMAIL'] || 'FIXME email'
end

Instance Attribute Details

#emailObject (readonly)

Returns the value of attribute email.



6
7
8
# File 'lib/newjs/rubyforge.rb', line 6

def email
  @email
end

#full_nameObject (readonly)

Returns the value of attribute full_name.



6
7
8
# File 'lib/newjs/rubyforge.rb', line 6

def full_name
  @full_name
end

Instance Method Details

#rubyforgeObject



13
14
15
# File 'lib/newjs/rubyforge.rb', line 13

def rubyforge
  @rubyforge ||= RubyForge.new(::RubyForge::CONFIG_F)
end