Skip to content

Command line arguments

Tom edited this page Aug 3, 2016 · 10 revisions

Table of Contents

Simple usage
Main arguments
In development

Simple usage

   ruby SecGen.rb [--options] <command>

Main arguments

   OPTIONS:
   --scenario [xml file], -s [xml file]: set the scenario to use
              (defaults to the default scenario)
   --project [output dir], -p [output dir]: directory for the generated project
              (output will default to the default output directory set via --output-dir) <-- Create --output-dir argument

command
   --help, -h: shows this usage information

   COMMANDS:
   run, r: builds project and then builds the VMs
   build-project, p: builds project (vagrant and puppet config), but does not build VMs
   build-vms [/project/dir], v [project #]: builds VMs from a previously generated project
              (use in combination with --project [dir])

In development

OPTIONS:  
 --output-dir [output dir]: directory to place all puppet and vagrant output files into
 --validate-scenario [xml file]: validates the given xml file against the scenario schema, any errors are displayed so they can be corrected
 --validate-module [module path]: spins up the given module on a test virtual machine to make sure it functions as desired

Clone this wiki locally