class SafePusher::Client::Git
Public Instance Methods
add()
click to toggle source
# File lib/safe_pusher/client/git.rb, line 10 def add system('git add --interactive') $CHILD_STATUS.exitstatus end
amend()
click to toggle source
# File lib/safe_pusher/client/git.rb, line 4 def amend system('git commit --amend') $CHILD_STATUS.exitstatus end
commit()
click to toggle source
# File lib/safe_pusher/client/git.rb, line 16 def commit puts 'Enter a message for your commit:' result = STDIN.gets.chomp system("git commit -m '#{result}'") $CHILD_STATUS.exitstatus end