MCPcopy Create free account
hub / github.com/apache/mesos / plugins

Method plugins

src/python/cli_new/lib/cli/plugins/config/main.py:59–78  ·  view source on GitHub ↗

Parse and load the builtin plugins and the ones in the configuration file. If this method is called using 'mesos config plugins', it displays the plugins that can be used.

(self, argv)

Source from the content-addressed store, hash-verified

57 }
58
59 def plugins(self, argv):
60 """
61 Parse and load the builtin plugins and the ones in the configuration
62 file. If this method is called using 'mesos config plugins', it
63 displays the plugins that can be used.
64 """
65 # pylint: disable=unused-argument
66 plugins_table = Table(["NAME", "DESCRIPTION"])
67
68 # Load the plugins
69 plugins = cli.util.import_modules(
70 cli.util.join_plugin_paths(self.settings, self.config),
71 "plugins")
72
73 for plugin in plugins:
74 plugins_table.add_row([
75 cli.util.get_module(plugins, plugin).PLUGIN_NAME,
76 cli.util.get_module(plugins, plugin).SHORT_HELP
77 ])
78 sys.stdout.write("{}\n".format(plugins_table))
79
80 def show(self, argv):
81 """

Callers

nothing calls this directly

Calls 3

add_rowMethod · 0.95
TableClass · 0.90
writeMethod · 0.45

Tested by

no test coverage detected