Class: Cachivache::UpdateStuffLibrariesCommand
- Inherits:
-
Command
- Object
- Command
- Cachivache::UpdateStuffLibrariesCommand
show all
- Defined in:
- lib/cachivache/update-stuff-libraries-command.rb
Instance Method Summary
collapse
Methods inherited from Command
#current_folder, #gem_folder, #inform, #raise_error, run, #validate_cachivache_folder
Instance Method Details
#default_libraries ⇒ Object
13
14
15
|
# File 'lib/cachivache/update-stuff-libraries-command.rb', line 13
def default_libraries
'.'
end
|
#run(libraries) ⇒ Object
6
7
8
9
10
11
|
# File 'lib/cachivache/update-stuff-libraries-command.rb', line 6
def run(libraries)
validate_cachivache_folder
libraries << default_libraries if libraries.empty?
system "git submodule update --remote #{ libraries.join(' ') }"
end
|