lib/right_publish/stores/local.rb in right_publish-0.3.0 vs lib/right_publish/stores/local.rb in right_publish-0.4.0

- old
+ new

@@ -1,13 +1,13 @@ require 'fog' require 'digest/md5' module RightPublish module LocalStorage - - DEFAULT_LOCAL_CACHEDIR = '~/.rp_cache' + DEFAULT_LOCAL_CACHEDIR = File.expand_path('~/.right_publish/cache') STORAGE_KEY = :local_storage - STORAGE_OPTIONS = { :cache_dir=>DEFAULT_LOCAL_CACHEDIR} + STORAGE_OPTIONS = { :cache_dir=>DEFAULT_LOCAL_CACHEDIR } + def compute_md5(file) Digest::MD5.file(File.join(service.path_to(self.key), file.key)).hexdigest end def self.get_directories()