コード例 #1
0
ファイル: cmd_create.py プロジェクト: mentalsmash/uno
 def __init__(self, uvn, name="create", alias=["c"]):
     UvnCommand.__init__(
         self,
         uvn,
         name=name,
         alias=alias,
         help_short="Initialize a new UVN",
         help_long="""Initialize a new UVN root directory.""")
コード例 #2
0
 def __init__(self, uvn, name="agent", alias=["A"]):
     UvnCommand.__init__(self,
                         uvn,
                         name=name,
                         alias=alias,
                         help_short="Start the UVN agent",
                         help_long="""Start the UVN agent.""",
                         daemon_friendly=True)
コード例 #3
0
 def __init__(self, uvn, name="runner", alias=["R"]):
     UvnCommand.__init__(
         self,
         uvn,
         name=name,
         alias=alias,
         help_short="Provision a uvn node with a Docker container",
         help_long="""Provision a uvn node with a Docker container.""",
         subcommands=[UvnSubcommandRunnerBuild])
コード例 #4
0
ファイル: cmd_attach.py プロジェクト: mentalsmash/uno
 def __init__(self, uvn, name="attach", alias=["a"]):
     UvnCommand.__init__(
         self,
         uvn,
         name=name,
         alias=alias,
         help_short="Attach a cell or particle to the UVN",
         help_long="""Attach a cell or particle to the UVN.""",
         subcommands=[UvnSubcommandAttachCell, UvnSubcommandAttachParticle])
コード例 #5
0
ファイル: cmd_deploy.py プロジェクト: mentalsmash/uno
 def __init__(self, uvn, name="deploy", alias=["d"]):
     UvnCommand.__init__(
         self,
         uvn,
         name=name,
         alias=alias,
         help_short="Generate deployment configuration for a UVN",
         help_long="""Generate deployment configuration which to be
                   distributed to the cells of a UVN.""")
コード例 #6
0
 def __init__(self, uvn, name="nameserver", alias=["ns"]):
     UvnCommand.__init__(self, uvn,
         name=name,
         alias=alias,
         help_short="Manage UVN name server",
         help_long="""Manage UVN name server.""",
         subcommands=[
             UvnSubcommandNameserverAssert,
             UvnSubcommandNameserverRemove])
コード例 #7
0
ファイル: cmd_drop.py プロジェクト: mentalsmash/uno
 def __init__(self, uvn, name="drop", alias=["D"]):
     UvnCommand.__init__(
         self,
         uvn,
         name=name,
         alias=alias,
         help_short="Drop elements from the UVN",
         help_long=
         """Delete existing deployments, cells, or particles from the UVN."""
     )
コード例 #8
0
 def __init__(self, uvn, name="view", alias=["v"]):
     UvnCommand.__init__(
         self,
         uvn,
         name=name,
         alias=alias,
         help_short="Display UVN Agent configuration files and logs.",
         help_long="""Display UVN Agent configuration files and logs..""",
         subcommands=[
             UvnSubcommandViewRoutingService, UvnSubcommandViewKernel,
             UvnSubcommandViewZebra, UvnSubcommandViewOspfd,
             UvnSubcommandViewNameserver, UvnSubcommandViewAgent
         ])
コード例 #9
0
 def __init__(self, uvn, name="info", alias=["i"]):
     UvnCommand.__init__(self, uvn,
         name=name,
         alias=alias,
         help_short="Display information about a UVN",
         help_long="""Display information about a UVN.""")
コード例 #10
0
ファイル: cmd_graph.py プロジェクト: mentalsmash/uno
 def __init__(self, uvn, name="graph", alias=["G"]):
     UvnCommand.__init__(self, uvn,
         name=name,
         alias=alias,
         help_short="Generate a graph of the UVN layout",
         help_long="""Generate a graph of the UVN layout.""")
コード例 #11
0
 def __init__(self, uvn, name="install", alias=["I"]):
     UvnCommand.__init__(self, uvn,
         name=name,
         alias=alias,
         help_short="Install a UVN cell package",
         help_long="""Install a UVN cell package.""")