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
-
#changes_file ⇒ Object
Returns the value of attribute changes_file.
-
#password ⇒ Object
writeonly
Sets the attribute password.
-
#user_name ⇒ Object
writeonly
Sets the attribute user_name.
Instance Method Summary collapse
-
#initialize(project) ⇒ Base
constructor
A new instance of Base.
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_file ⇒ Object
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
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 |