Class: Brigit::UpdateCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/brigit/commands/update_command.rb

Instance Attribute Summary

Attributes inherited from Command

#args

Instance Method Summary collapse

Methods inherited from Command

help, #initialize

Methods included from Pretending

#pretend!

Methods included from Fallible

#fail

Methods included from Listable

included

Constructor Details

This class inherits a constructor from Brigit::Command

Instance Method Details

#runObject



8
9
10
11
12
13
14
# File 'lib/brigit/commands/update_command.rb', line 8

def run
  super
  Brigit.at_dot_gitmodules do |path|
    sh "git submodule init"
    sh "git submodule update"
  end
end