Class: Semmy::Tasks::Branches
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Semmy::Tasks::Base
Instance Method Details
#define ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/semmy/tasks/branches.rb', line 6 def define namespace 'branches' do task 'create_stable' do Shell.info("Creating stable branch #{stable_branch_name}.") git.branch(stable_branch_name).create end task 'push_master', [:remote] do |_, args| push_branch(args[:remote], 'master') end task 'push_previous_stable', [:remote] do |_, args| push_branch(args[:remote], previous_stable_branch_name) end end end |