Functions
---------
+.. autofunction:: getApplication
.. autofunction:: applications
.. autofunction:: expand_re
.. autofunction:: make_extractors
_applications = dict([(n,Application.make(n)) for n in _application_list ])
return _applications
+def getApplication(appname):
+ """Retrieves application instance given a name"""
+ return applications()[appname]
class Application(object):
"""
raise DirectoryExistsError
appname, _, version = appstr.partition('-')
- application = app.applications()[appname]
+ application = app.getApplication(appname)
# get configuration
schema = application.install_schema
check_directory(options)
if not os.path.exists(args[0]):
appname, _, version = args[0].partition("-")
- application = app.applications()[appname]
+ application = app.getApplication(appname)
url = application.download(version)
base = os.path.basename(url)
with open(base, "w") as outfile:
def main(argv, baton):
options, show = parse_args(argv, baton)
appname = show[0]
- application = app.applications()[appname]
+ application = app.getApplication(appname)
deploys = deploy.parse_install_lines(show, options.versions_path)
stats = {}
iffy = 0