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
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/semmy/tasks/branches.rb', line 4 def define namespace 'branches' do task 'create_stable' do Shell.info("Creating stable branch #{stable_branch_name}.") Scm.create_branch(stable_branch_name) 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 task 'attach_git_head' do Scm.attach_git_head end end end |