lib/bhook/workspace.rb in bhook-0.2.2 vs lib/bhook/workspace.rb in bhook-0.3.0
- old
+ new
@@ -26,21 +26,15 @@
listener = Listen.to(@src_path.to_s, File.join(@src_path.to_s, '.git')) do |_modified, _added, _removed|
L.info 'Detected changes...'
process!
end
listener.start
- sleep
end
- sig { returns(T::Array[MdFile]) }
- def all_md_files
- root_dir.all_md_files
- end
-
private
sig { returns(Bhook::Directory) }
def root_dir
- Directory.new_root_directory(@src_path, @out_path)
+ RootDirectory.new(@src_path, @out_path)
end
end
end