Class: Rake::RubyForgePublisher

Inherits:
SshDirPublisher show all
Defined in:
lib/rake/contrib/rubyforgepublisher.rb

Constant Summary

Constants included from FileUtilsExt

FileUtilsExt::DEFAULT

Constants included from FileUtils

FileUtils::LN_SUPPORTED, FileUtils::RUBY

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from SshDirPublisher

#upload

Methods included from FileUtilsExt

#nowrite, #rake_check_options, #rake_merge_option, #rake_output_message, #verbose, #when_writing

Methods included from FileUtils

#ruby, #safe_ln, #sh, #split_all

Constructor Details

#initialize(projname, user) ⇒ RubyForgePublisher

Returns a new instance of RubyForgePublisher


8
9
10
11
12
13
# File 'lib/rake/contrib/rubyforgepublisher.rb', line 8

def initialize(projname, user)
  super(
    "#{user}@rubyforge.org",
    "/var/www/gforge-projects/#{projname}",
    "html")
end

Instance Attribute Details

#proj_idObject (readonly)

Returns the value of attribute proj_id


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

def proj_id
  @proj_id
end

#projectObject (readonly)

Returns the value of attribute project


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

def project
  @project
end

#userObject (readonly)

Returns the value of attribute user


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

def user
  @user
end