class RGitFlow::Tasks::SCM::Status

Public Class Methods

new(git) click to toggle source
Calls superclass method RGitFlow::Tasks::SCM::Task::new
# File lib/rgitflow/tasks/scm/status.rb, line 7
def initialize(git)
  super(git, 'status', 'Check the status of the repository')
end

Protected Instance Methods

run() click to toggle source
# File lib/rgitflow/tasks/scm/status.rb, line 13
def run
  if dirty?
    error 'There are uncommitted changes in the repository!'

    print_status

    abort
  end
  status 'There are no uncommitted changes in the repository.'
end