Class: SafePusher::Client::Github
- Inherits:
-
Object
- Object
- SafePusher::Client::Github
- Defined in:
- lib/safe_pusher/client/github.rb
Instance Method Summary collapse
Instance Method Details
#open ⇒ Object
20 21 22 23 24 |
# File 'lib/safe_pusher/client/github.rb', line 20 def open system( "open '#{SafePusher.configuration.repo_url}/pull/new/#{branch}'", ) end |
#push ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/safe_pusher/client/github.rb', line 4 def push system('git push origin') exit_status = $CHILD_STATUS.exitstatus if exit_status == 128 puts 'Syncing with github...'.green push_and_set_upstream exit_status = $CHILD_STATUS.exitstatus end exit_status end |