Sha256: 8f2a86c1fead7aa00480a2d6fb796a837199705a7e142fb38379f36852ef4aee

Contents?: true

Size: 452 Bytes

Versions: 11

Compression:

Stored size: 452 Bytes

Contents

module SafePusher
  module Client
    class Git
      def amend
        system('git commit --amend')

        $CHILD_STATUS.exitstatus
      end

      def add
        system('git add --interactive')

        $CHILD_STATUS.exitstatus
      end

      def commit
        puts 'Enter a message for your commit:'

        result = STDIN.gets.chomp

        system("git commit -m '#{result}'")

        $CHILD_STATUS.exitstatus
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
safe_pusher-0.5.7 lib/safe_pusher/client/git.rb
safe_pusher-0.5.6 lib/safe_pusher/client/git.rb
safe_pusher-0.5.5 lib/safe_pusher/client/git.rb
safe_pusher-0.5.4 lib/safe_pusher/client/git.rb
safe_pusher-0.5.3 lib/safe_pusher/client/git.rb
safe_pusher-0.5.2 lib/safe_pusher/client/git.rb
safe_pusher-0.5.1 lib/safe_pusher/client/git.rb
safe_pusher-0.5.0 lib/safe_pusher/client/git.rb
safe_pusher-0.4.3 lib/safe_pusher/client/git.rb
safe_pusher-0.4.2 lib/safe_pusher/client/git.rb
safe_pusher-0.4.1 lib/safe_pusher/client/git.rb