Class: Brigit::StatusCommand
- Defined in:
- lib/brigit/commands/status_command.rb
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
Methods included from Pretending
Methods included from Fallible
Methods included from Listable
Constructor Details
This class inherits a constructor from Brigit::Command
Instance Method Details
#run ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/brigit/commands/status_command.rb', line 8 def run super say "<%= color '#{Dir.pwd}', :yellow, :bold %>" sh "git status" Brigit.at_dot_gitmodules do |path| submodules_at(path).each do |sub| say %<\n<%= color 'Submodule:', :yellow %> <%= color '#{sub['path']}', :yellow, :bold %> <%= color "(#{sub['url']})", :white %>> Dir.chdir sub['path'] do sh "git status" end end end end |