use lower case names to workaround stupid puppet bug (http://projects.puppetlabs...
[myplc.git] / plc-config
index e7b74fd..ad638dd 100755 (executable)
@@ -6,7 +6,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: plc-config 1078 2007-11-15 13:38:27Z thierry $
+# $Id$
 #
 
 import sys
@@ -27,6 +27,7 @@ Usage: %s [OPTION]... [FILES]
         --shell         Output shell configuration file
         --python        Output Python configuration file
         --php           Output PHP configuration file
+        --ruby          Output Ruby configuration file
 
         Information:
 
@@ -72,6 +73,7 @@ def main():
     # Standard options
     shortopts = "hs:"
     longopts = ["shell", "bash", "python",
+                "ruby",
                 "php",
                 "xml",
                 "variables",
@@ -94,6 +96,8 @@ def main():
              opt == "--bash" or \
              opt == "--python":
             output = plc.output_shell
+        elif opt == "--ruby":
+            output = plc.output_ruby
         elif opt == "--php":
             output = plc.output_php
         elif opt == "--xml":