generate ruby config via plc-config. Required by puppet
[myplc.git] / plc-config
index 78fc6db..ad638dd 100755 (executable)
@@ -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":