class T1k::Commands::PullRequest
Public Class Methods
open_browser(pull)
click to toggle source
# File lib/t1k/commands/pull_request.rb, line 13 def self.open_browser pull return 1 if pull.nil? match = pull.match( /(https:\/\/[a-zA-Z].*=1)/) if match uri = match[0] system "open #{uri}" end end
run()
click to toggle source
# File lib/t1k/commands/pull_request.rb, line 5 def self.run T1k::Commands::Sink.run branch = T1k::Commands::Branch.actual_branch pull = `git push origin #{branch.strip}` self.open_browser pull end