aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/sysenv.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-05-15 14:30:20 -0400
committerRalph Amissah <ralph@amissah.com>2011-05-15 14:30:22 -0400
commitcfa267b43ab49cb6cb72a7e6675a49d4fbc6576a (patch)
treeb2810facb42215690bb4f14627f6dbd9bd3f5a5c /lib/sisu/v3/sysenv.rb
parentv3: sysenv, output directory structure check, fix (start testing alternatives) (diff)
v3: sysenv, options, output_dir_structure.by? (language|filetype|filename)
Diffstat (limited to 'lib/sisu/v3/sysenv.rb')
-rw-r--r--lib/sisu/v3/sysenv.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/sisu/v3/sysenv.rb b/lib/sisu/v3/sysenv.rb
index c22f878c..6d010c76 100644
--- a/lib/sisu/v3/sysenv.rb
+++ b/lib/sisu/v3/sysenv.rb
@@ -440,6 +440,15 @@ module SiSU_Env
def multilingual?
by_language_code?
end
+ def by?
+ by=if by_language_code?
+ 'language'
+ elsif by_filetype?
+ 'filetype'
+ else
+ 'filename'
+ end
+ end
self
end
def document_language_versions_found #REVISIT