コード例 #1
0
ファイル: cli.py プロジェクト: tuapuikia/localstack
def print_version(in_docker=False):
    print()
    print('LocalStack version: %s' % constants.VERSION)
    if in_docker:
        id = get_main_container_id()
        if id:
            print('LocalStack docker image id: %s' % id[:12])

    if config.LOCALSTACK_BUILD_DATE:
        print('LocalStack build date: %s' % config.LOCALSTACK_BUILD_DATE)

    if config.LOCALSTACK_BUILD_GIT_HASH:
        print('LocalStack build git hash: %s' % config.LOCALSTACK_BUILD_GIT_HASH)

    print()
コード例 #2
0
ファイル: infra.py プロジェクト: rahul-bhave/localstack
def print_runtime_information(in_docker=False):
    # FIXME: this is legacy code from the old CLI, reconcile with new CLI and runtime output

    print()
    print("LocalStack version: %s" % constants.VERSION)
    if in_docker:
        id = get_main_container_id()
        if id:
            print("LocalStack Docker container id: %s" % id[:12])

    if config.LOCALSTACK_BUILD_DATE:
        print("LocalStack build date: %s" % config.LOCALSTACK_BUILD_DATE)

    if config.LOCALSTACK_BUILD_GIT_HASH:
        print("LocalStack build git hash: %s" % config.LOCALSTACK_BUILD_GIT_HASH)

    print()