Exemplo n.º 1
0
def ready_indexed_module(name):
    if storage.module_compiled(name):
        print utility.color(' - already compiled', 'green')
    else:
        path = storage.module_path(name)
        build_directory(path)
        prepare_headers(name)
        print utility.color(' - compiled module: ' + name, 'green')
Exemplo n.º 2
0
def ready_indexed_module(name):
	if storage.module_compiled(name):
		print utility.color(' - already compiled', 'green')
	else:
		path = storage.module_path(name)
		build_directory(path)
		prepare_headers(name)
		print utility.color(' - compiled module: ' + name, 'green')
Exemplo n.º 3
0
def modules(context):
	local = storage.local_modules()
	print 'local:  (' + str(len(local)) + ')'
	for m in local:
		if storage.module_compiled(m[0]):
			print ' - ' + m[0], '[' + utility.color('compiled', 'green') + ']'
		else:
			print ' - ' + m[0], '[' + utility.color('not compiled', 'red') + ']'

	if context.local:
		return

	remote = storage.remote_modules()
	print '\nremote:  (' + str(len(remote)) + ')'
	for m in remote:
		print ' -', m[0], '[' + utility.color(m[1], 'yellow') + ']'