Class: LazyRepo
Instance Attribute Summary
Attributes inherited from Repo
Instance Method Summary collapse
- #files_changed ⇒ Object
-
#initialize(*args) ⇒ LazyRepo
constructor
A new instance of LazyRepo.
- #set_all_files ⇒ Object
Methods inherited from Repo
#changed?, #current_branch, #find_files, #grep, root_dir, #status_files
Constructor Details
#initialize(*args) ⇒ LazyRepo
Returns a new instance of LazyRepo.
3 4 5 6 |
# File 'lib/sfb_scripts/repositories/lazy_repo.rb', line 3 def initialize(*args) super set_all_files end |
Instance Method Details
#files_changed ⇒ Object
8 9 10 |
# File 'lib/sfb_scripts/repositories/lazy_repo.rb', line 8 def files_changed @all_files end |
#set_all_files ⇒ Object
12 13 14 15 |
# File 'lib/sfb_scripts/repositories/lazy_repo.rb', line 12 def set_all_files shell.notify "\nIdentifying all files:" @all_files = shell.run("git ls-tree --full-tree -r HEAD --name-only").split("\n") end |