Class: Lander

Inherits:
Object
  • Object
show all
Defined in:
lib/committer-tools.rb

Instance Method Summary collapse

Instance Method Details

#run(github_pr, metadata) ⇒ Object



21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/committer-tools.rb', line 21

def run(github_pr, )
  check_to_land(github_pr, )
  introduce_commit(github_pr, )

  puts "[\u{2714}] Commit(s) applied locally. Please update to your liking, and then type 'continue'."
  continue = gets.strip!

  while !continue do
    sleep
  end

  if continue && continue == 'continue'
    ()
    validate_commit

    puts "\n[\u{2714}] Landed in #{`git rev-list upstream/master...HEAD`} -- committer-tools is done! Edit away to your content, and then push away :)"
  end
end