Class: Rake::ShipitTask::Step::Commit
- Inherits:
-
Object
- Object
- Rake::ShipitTask::Step::Commit
- Defined in:
- lib/shipit.rb
Instance Method Summary collapse
-
#initialize(step, msg = nil) ⇒ Commit
constructor
A new instance of Commit.
- #prepare ⇒ Object
- #run ⇒ Object
Constructor Details
#initialize(step, msg = nil) ⇒ Commit
Returns a new instance of Commit.
175 176 177 |
# File 'lib/shipit.rb', line 175 def initialize(step, msg=nil) @msg = msg end |
Instance Method Details
#prepare ⇒ Object
179 180 181 182 183 |
# File 'lib/shipit.rb', line 179 def prepare @vc = Rake::ShipitTask::VC.new @vers = VERS @vc.precommit end |
#run ⇒ Object
185 186 187 |
# File 'lib/shipit.rb', line 185 def run @vc.commit(@msg || "Release #{@vers}") end |