MCPcopy
hub / github.com/lektor/lektor / publish

Function publish

lektor/publisher.py:656–661  ·  view source on GitHub ↗
(env, target, output_path, credentials=None, **extra)

Source from the content-addressed store, hash-verified

654
655
656def publish(env, target, output_path, credentials=None, **extra):
657 url = urls.url_parse(str(target))
658 publisher = env.publishers.get(url.scheme)
659 if publisher is None:
660 raise PublishError('"%s" is an unknown scheme.' % url.scheme)
661 return publisher(env, output_path).publish(url, credentials, **extra)

Callers 3

deploy_cmdFunction · 0.90
generatorFunction · 0.90

Calls 3

PublishErrorClass · 0.85
getMethod · 0.45
publishMethod · 0.45

Tested by 1