Class: LazyRepo
- Inherits:
-
Repo
show all
- Defined in:
- lib/sfb_scripts/repositories/lazy_repo.rb
Instance Attribute Summary
Attributes inherited from Repo
#shell
Instance Method Summary
collapse
Methods inherited from Repo
#changed?, #current_branch, #find_files, #grep, root_dir, #status_files
Constructor Details
#initialize(*args) ⇒ 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
|