Class: MidwireCommon::RakeHelper
- Inherits:
-
Object
- Object
- MidwireCommon::RakeHelper
- Includes:
- Rake::DSL
- Defined in:
- lib/midwire_common/rake_helper.rb
Overview
RakeHelper helps to automate gem release and versioning tasks
Instance Attribute Summary collapse
-
#basedir ⇒ Object
readonly
Returns the value of attribute basedir.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(basedir) ⇒ RakeHelper
constructor
A new instance of RakeHelper.
- #install ⇒ Object
Constructor Details
#initialize(basedir) ⇒ RakeHelper
Returns a new instance of RakeHelper.
15 16 17 |
# File 'lib/midwire_common/rake_helper.rb', line 15 def initialize(basedir) @basedir = basedir end |
Instance Attribute Details
#basedir ⇒ Object (readonly)
Returns the value of attribute basedir.
13 14 15 |
# File 'lib/midwire_common/rake_helper.rb', line 13 def basedir @basedir end |
Class Method Details
.install_tasks(opts = {}) ⇒ Object
8 9 10 11 |
# File 'lib/midwire_common/rake_helper.rb', line 8 def self.install_tasks(opts = {}) dir = opts[:dir] || Dir.pwd new(dir).install end |