Class: Rake::ShipitTask::Step::Commit

Inherits:
Object
  • Object
show all
Defined in:
lib/shipit.rb

Instance Method Summary collapse

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

#prepareObject



179
180
181
182
183
# File 'lib/shipit.rb', line 179

def prepare
	@vc = Rake::ShipitTask::VC.new
	@vers = VERS
	@vc.precommit
end

#runObject



185
186
187
# File 'lib/shipit.rb', line 185

def run
	@vc.commit(@msg || "Release #{@vers}")
end