[logaling-commit] logaling/logaling-command [master] Initialize @project_config_path when can't find .logaling

Back to archive index

null+****@clear***** null+****@clear*****
Tue Feb 21 13:52:59 JST 2012


SHIMADA Koji	2012-02-21 13:52:59 +0900 (Tue, 21 Feb 2012)

  New Revision: 6bfb8c05b912d49c9e938f427ad5ee3d585db7c5

  Log:
    Initialize @project_config_path when can't find .logaling

  Modified files:
    lib/logaling/command/application.rb

  Modified: lib/logaling/command/application.rb (+2 -0)
===================================================================
--- lib/logaling/command/application.rb    2012-02-20 12:24:58 +0900 (d056cb2)
+++ lib/logaling/command/application.rb    2012-02-21 13:52:59 +0900 (51782a5)
@@ -35,6 +35,8 @@ module Logaling::Command
       @dotfile_path = options["logaling-config"] ? options["logaling-config"] : find_dotfile
       @project_config_path = File.join(@dotfile_path, 'config')
       @config.load(@project_config_path)
+    rescue Logaling::CommandFailed # can't find .logaling
+      @project_config_path = nil
     ensure
       @config.merge!(options)
     end




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