Beispiel #1
0
def _run_recipe_local(recipe_file):
    if recipe_file.endswith('.py'):
        util.run_command("python3 {0}".format(recipe_file))
    else:
        util.run_command("bash -f {0}".format(recipe_file))
 def test_0003_run_command(self):
     try:
         util.run_command("echo")
     except Exception:
         self.fail()
Beispiel #3
0
def generate_ssh_keys(output):
    util.run_command("ssh-keygen -b 4096 -f {0} -a 500 -N ''"
                     .format(output))