Class: Rake::XForge::Base
- Inherits:
-
Object
- Object
- Rake::XForge::Base
- Defined in:
- lib/rake/contrib/xforge/base.rb
Overview
Base class for XForge tasks
Direct Known Subclasses
Instance Attribute Summary collapse
-
#password ⇒ Object
writeonly
Sets the attribute password.
-
#user_name ⇒ Object
writeonly
Sets the attribute user_name.
Instance Method Summary collapse
-
#initialize(project_unix_name, host = ::XForge::RubyForge.new) ⇒ Base
constructor
A new instance of Base.
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
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
6 7 8 |
# File 'lib/rake/contrib/xforge/base.rb', line 6 def user_name=(value) @user_name = value end |