Class: ToptranslationCli::Status
- Inherits:
-
Object
- Object
- ToptranslationCli::Status
- Defined in:
- lib/toptranslation_cli/status.rb
Class Method Summary collapse
Class Method Details
.run ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/toptranslation_cli/status.rb', line 6 def run ToptranslationCli.configuration.load proj = project local_files = FileFinder.local_files(proj) remote_files = FileFinder.remote_files(proj) only_local, only_remote, changed = diff(local_files, remote_files) print_status(only_local, only_remote, changed) (only_local + only_remote + changed).length end |