Class: GitBranch
- Inherits:
-
Object
- Object
- GitBranch
- Defined in:
- lib/pivotoolz/git_branch.rb
Instance Method Summary collapse
Instance Method Details
#generate(story_id, *append) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/pivotoolz/git_branch.rb', line 4 def generate(story_id, *append) if !story_id puts "#{GitBranch.}" exit end story = get_pivotal_story(story_id) = category = set_category(story['story_type']) description = set_description(story['name']) pivotal_id = story['id'] append = set_append_values(append) create_branch("#{}/#{category}/#{description}-#{pivotal_id}#{append}") end |