You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2016/02/27 16:00:31 UTC

[whimsy.git] [1/1] Commit cd2f5ff: move in to new home

Commit cd2f5ff3ba102f4b6bcc530a12902d98be712987:
    move in to new home


Branch: refs/heads/master
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@apache.org>

------------------------------------------------------------
www/secretary/workbench/local_paths.rb                       | ++++ 
www/secretary/workbench/local_paths.yml                      | +++++++ -------
------------------------------------------------------------
18 changes: 11 additions, 7 deletions.
------------------------------------------------------------


diff --git a/www/secretary/workbench/local_paths.rb b/www/secretary/workbench/local_paths.rb
index 3cbe131..c3ba577 100644
--- a/www/secretary/workbench/local_paths.rb
+++ b/www/secretary/workbench/local_paths.rb
@@ -1,3 +1,5 @@
+require 'fileutils'
+
 # attempt to determine where 'HOME' is
 unless ENV['HOME']
   ENV['HOME'] = $1 if ENV['SCRIPT_FILENAME'] =~ /(.*?)\/public_html\//
@@ -13,6 +15,8 @@
 # set constants based on the configuration file
 require 'yaml'
 YAML.load(open(config).read).each do |key, value|
+  FileUtils.mkdir_p value unless File.exist? value
+
   Object.const_set key.upcase,
     File.realpath(File.expand_path(value).untaint).untaint
 end
diff --git a/www/secretary/workbench/local_paths.yml b/www/secretary/workbench/local_paths.yml
index 8cc04d4..11846e8 100644
--- a/www/secretary/workbench/local_paths.yml
+++ b/www/secretary/workbench/local_paths.yml
@@ -1,7 +1,7 @@
-meeting:    /var/tools/secretary/foundation/Meetings/20150324
-foundation: /var/tools/secretary/foundation
-officers:   /var/tools/secretary/foundation/officers
-documents:  /var/tools/secretary/documents
-received:   /var/tools/secretary/documents/received
-mail:       /var/tools/secretary/secmail.rb
-subreq:     /var/tools/secretary/subreq
+meeting:    /srv/secretary/workbench/foundation/Meetings/20150324
+foundation: /srv/secretary/workbench/foundation
+officers:   /srv/secretary/workbench/foundation/officers
+documents:  /srv/secretary/workbench/documents
+received:   /srv/secretary/workbench/documents/received
+mail:       /srv/secretary/workbench/secmail.rb
+subreq:     /srv/secretary/workbench/subreq