aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-07-07 08:02:29 -0400
committerRalph Amissah <ralph@amissah.com>2010-07-07 08:02:29 -0400
commitce3eec09f9beba10403c5f1095526eb8687db15d (patch)
treec167aeacf65e2a6bb1746c8e0c0db04f343074a7
parentshared_xml, monospace marker for monospace tag (diff)
sysenv, version.yml moved to /usr/share/sisu (from /etc/sisu)
-rw-r--r--data/sisu/v1/v/version.yml (renamed from conf/sisu/v1/version.yml)0
-rw-r--r--data/sisu/v2/v/version.yml (renamed from conf/sisu/v2/version.yml)0
-rw-r--r--lib/sisu/v1/sysenv.rb4
-rw-r--r--lib/sisu/v2/sysenv.rb4
4 files changed, 4 insertions, 4 deletions
diff --git a/conf/sisu/v1/version.yml b/data/sisu/v1/v/version.yml
index 90edca90..90edca90 100644
--- a/conf/sisu/v1/version.yml
+++ b/data/sisu/v1/v/version.yml
diff --git a/conf/sisu/v2/version.yml b/data/sisu/v2/v/version.yml
index e772370c..e772370c 100644
--- a/conf/sisu/v2/version.yml
+++ b/data/sisu/v2/v/version.yml
diff --git a/lib/sisu/v1/sysenv.rb b/lib/sisu/v1/sysenv.rb
index a55b03cc..519c0f9f 100644
--- a/lib/sisu/v1/sysenv.rb
+++ b/lib/sisu/v1/sysenv.rb
@@ -2648,10 +2648,10 @@ WOK
def get_version
@version={}
@pwd=ENV['PWD']
- yst_etc="#{defaults[:sisu_etc]}/#{SiSU_version_dir}/version.yml"
+ yst_ver="#{defaults[:sisu_share]}/#{SiSU_version_dir}/v/version.yml"
lib_path=@@lib_path ? @@lib_path : `echo $RUBYLIB`.split(':')
@@lib_path ||=lib_path
- if File.exist?(yst_etc); @version=YAML::load(File::open(yst_etc)) #unless @@noyaml
+ if File.exist?(yst_ver); @version=YAML::load(File::open(yst_ver)) #unless @@noyaml
end
@version
end
diff --git a/lib/sisu/v2/sysenv.rb b/lib/sisu/v2/sysenv.rb
index 7d4999f2..6c579a9c 100644
--- a/lib/sisu/v2/sysenv.rb
+++ b/lib/sisu/v2/sysenv.rb
@@ -2669,10 +2669,10 @@ WOK
def get_version
@version={}
@pwd=ENV['PWD']
- yst_etc="#{defaults[:sisu_etc]}/#{SiSU_version_dir}/version.yml"
+ yst_ver="#{defaults[:sisu_share]}/#{SiSU_version_dir}/v/version.yml"
lib_path=@@lib_path ? @@lib_path : `echo $RUBYLIB`.split(':')
@@lib_path ||=lib_path
- if File.exist?(yst_etc); @version=YAML::load(File::open(yst_etc)) #unless @@noyaml
+ if File.exist?(yst_ver); @version=YAML::load(File::open(yst_ver)) #unless @@noyaml
end
@version
end