[logaling-commit] logaling/logaling-command [master] Change variable name

Back to archive index

SUZUKI Miho null+****@clear*****
Wed Nov 14 11:05:23 JST 2012


SUZUKI Miho	2012-11-14 11:05:23 +0900 (Wed, 14 Nov 2012)

  New Revision: 7c8775338a39e41895cfb4915a666460e5cd3346
  https://github.com/logaling/logaling-command/commit/7c8775338a39e41895cfb4915a666460e5cd3346

  Merged 6a87d99: Merge pull request #90 from logaling/change-glossarysourcepath-fullpath-to-relativepath

  Log:
    Change variable name

  Modified files:
    lib/logaling/repository.rb

  Modified: lib/logaling/repository.rb (+6 -6)
===================================================================
--- lib/logaling/repository.rb    2012-11-14 10:54:42 +0900 (5205ff0)
+++ lib/logaling/repository.rb    2012-11-14 11:05:23 +0900 (acc3f7a)
@@ -22,7 +22,7 @@ require "logaling/project"
 module Logaling
   class Repository
     def initialize(path)
-      @path = path
+      @logaling_home = path
     end
 
     def register(dot_logaling_path, register_name)
@@ -157,25 +157,25 @@ module Logaling
     end
 
     def config_path
-      path = File.join(@path, "config")
+      path = File.join(@logaling_home, "config")
       File.exist?(path) ? path : nil
     end
 
     def logaling_db_home
-      File.join(@path, "db")
+      File.join(@logaling_home, "db")
     end
 
     private
     def logaling_projects_path
-      File.join(@path, "projects")
+      File.join(@logaling_home, "projects")
     end
 
     def personal_glossary_root_path
-      File.join(@path, "personal")
+      File.join(@logaling_home, "personal")
     end
 
     def cache_path
-      File.join(@path, "cache")
+      File.join(@logaling_home, "cache")
     end
 
     def registered_project_paths
-------------- next part --------------
An HTML attachment was scrubbed...
Descargar 



More information about the logaling-commit mailing list
Back to archive index