Class: Heal::Cli::Main

Inherits:
Base
  • Object
show all
Defined in:
lib/heal/cli/main.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Heal::Cli::Base

Instance Method Details

#configObject



4
5
6
# File 'lib/heal/cli/main.rb', line 4

def config
  puts @config.to_yaml
end

#deliveryObject



9
10
11
12
13
14
15
16
17
# File 'lib/heal/cli/main.rb', line 9

def delivery
  issue_id = PROMPT.ask("Please enter the Issue key...\n", required: true)

  source_branch = development_branch(issue_id)
  
  ask_repo_choices.each do |repo|
    invoke "heal:cli:git:cherry-pick-pr", [issue_id, repo, source_branch, delivery_branch, issue_branch(issue_id)]
  end
end

#releaseObject



20
21
22
23
24
25
26
27
28
29
# File 'lib/heal/cli/main.rb', line 20

def release
  feature_id = PROMPT.ask("Enter the Feature key...\n", required: true)
  feature_issues = PROMPT.ask("Enter all issues under the EPIC: JIRA-1,JIRA-2,...\n", required: true, convert: :array)
  
  ask_repo_choices.each do |repo|
    feature_issues.each do |issue_id|
      invoke "heal:cli:git:cherry-pick-pr", [issue_id, repo, issue_branch(issue_id), release_branch, feature_branch(feature_id)]
    end
  end
end