lib/dassets/digest_cmd.rb in dassets-0.5.0 vs lib/dassets/digest_cmd.rb in dassets-0.6.0

- old
+ new

@@ -3,20 +3,25 @@ require 'dassets/source_file' module Dassets; end class Dassets::DigestCmd + # TODO: need digest cmd to be aware of and digest combinations as well. + # going to wait on this for now b/c there are changes coming to how sources + # are obtained and the future of the digest cmd and I want to see how thost + # end up first. + attr_reader :paths def initialize(abs_paths) @paths = abs_paths || [] end def run(io=nil) files = @paths if @paths.empty? # always get the latest source list - files = Dassets::SourceList.new(Dassets.config) + files = Dassets.source_list end log io, "digesting #{files.count} source file(s) ..." digest_the_files(files) end