Class: RGitFlow::Tasks::SCM::Status
- Defined in:
- lib/rgitflow/tasks/scm/status.rb
Constant Summary
Constants included from Printing
Printing::DEBUG_PREFIX, Printing::ERROR_PREFIX, Printing::INPUT_PREFIX, Printing::STATUS_PREFIX
Instance Attribute Summary
Attributes inherited from Task
#after, #before, #dependencies, #description, #name, #namespaces
Instance Method Summary collapse
-
#initialize(git) ⇒ Status
constructor
A new instance of Status.
- #run ⇒ Object protected
Methods inherited from Task
Methods inherited from Task
Methods included from Console
#execute, #invoke, #multi_task, #task?
Methods included from Printing
#debug, #error, #prompt, #status
Constructor Details
#initialize(git) ⇒ Status
Returns a new instance of Status.
7 8 9 |
# File 'lib/rgitflow/tasks/scm/status.rb', line 7 def initialize(git) super(git, 'status', 'Check the status of the repository') end |
Instance Method Details
#run ⇒ Object (protected)
13 14 15 16 17 18 19 20 21 22 |
# 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 |