rigid 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bin/rigid +4 -0
- data/rigid +16 -0
- data/vendor/PyYAML-3.12.dist-info/DESCRIPTION.rst +12 -0
- data/vendor/PyYAML-3.12.dist-info/INSTALLER +1 -0
- data/vendor/PyYAML-3.12.dist-info/METADATA +35 -0
- data/vendor/PyYAML-3.12.dist-info/RECORD +42 -0
- data/vendor/PyYAML-3.12.dist-info/WHEEL +5 -0
- data/vendor/PyYAML-3.12.dist-info/metadata.json +1 -0
- data/vendor/PyYAML-3.12.dist-info/top_level.txt +2 -0
- data/vendor/_yaml.so +0 -0
- data/vendor/click/__init__.py +98 -0
- data/vendor/click/__init__.pyc +0 -0
- data/vendor/click/_bashcomplete.py +83 -0
- data/vendor/click/_bashcomplete.pyc +0 -0
- data/vendor/click/_compat.py +642 -0
- data/vendor/click/_compat.pyc +0 -0
- data/vendor/click/_termui_impl.py +547 -0
- data/vendor/click/_termui_impl.pyc +0 -0
- data/vendor/click/_textwrap.py +38 -0
- data/vendor/click/_textwrap.pyc +0 -0
- data/vendor/click/_unicodefun.py +119 -0
- data/vendor/click/_unicodefun.pyc +0 -0
- data/vendor/click/_winconsole.py +273 -0
- data/vendor/click/_winconsole.pyc +0 -0
- data/vendor/click/core.py +1738 -0
- data/vendor/click/core.pyc +0 -0
- data/vendor/click/decorators.py +304 -0
- data/vendor/click/decorators.pyc +0 -0
- data/vendor/click/exceptions.py +201 -0
- data/vendor/click/exceptions.pyc +0 -0
- data/vendor/click/formatting.py +256 -0
- data/vendor/click/formatting.pyc +0 -0
- data/vendor/click/globals.py +48 -0
- data/vendor/click/globals.pyc +0 -0
- data/vendor/click/parser.py +426 -0
- data/vendor/click/parser.pyc +0 -0
- data/vendor/click/termui.py +539 -0
- data/vendor/click/termui.pyc +0 -0
- data/vendor/click/testing.py +322 -0
- data/vendor/click/testing.pyc +0 -0
- data/vendor/click/types.py +550 -0
- data/vendor/click/types.pyc +0 -0
- data/vendor/click/utils.py +415 -0
- data/vendor/click/utils.pyc +0 -0
- data/vendor/click-6.6.dist-info/DESCRIPTION.rst +3 -0
- data/vendor/click-6.6.dist-info/INSTALLER +1 -0
- data/vendor/click-6.6.dist-info/METADATA +16 -0
- data/vendor/click-6.6.dist-info/RECORD +41 -0
- data/vendor/click-6.6.dist-info/WHEEL +6 -0
- data/vendor/click-6.6.dist-info/metadata.json +1 -0
- data/vendor/click-6.6.dist-info/top_level.txt +1 -0
- data/vendor/easy_install.py +5 -0
- data/vendor/easy_install.pyc +0 -0
- data/vendor/pip-9.0.1.dist-info/DESCRIPTION.rst +39 -0
- data/vendor/pip-9.0.1.dist-info/INSTALLER +1 -0
- data/vendor/pip-9.0.1.dist-info/METADATA +69 -0
- data/vendor/pip-9.0.1.dist-info/RECORD +501 -0
- data/vendor/pip-9.0.1.dist-info/WHEEL +6 -0
- data/vendor/pip-9.0.1.dist-info/entry_points.txt +5 -0
- data/vendor/pip-9.0.1.dist-info/metadata.json +1 -0
- data/vendor/pip-9.0.1.dist-info/top_level.txt +1 -0
- data/vendor/pkg_resources/__init__.py +3051 -0
- data/vendor/pkg_resources/__init__.pyc +0 -0
- data/vendor/pkg_resources/_vendor/__init__.py +0 -0
- data/vendor/pkg_resources/_vendor/__init__.pyc +0 -0
- data/vendor/pkg_resources/_vendor/appdirs.py +552 -0
- data/vendor/pkg_resources/_vendor/appdirs.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/__about__.py +21 -0
- data/vendor/pkg_resources/_vendor/packaging/__about__.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/__init__.py +14 -0
- data/vendor/pkg_resources/_vendor/packaging/__init__.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/_compat.py +30 -0
- data/vendor/pkg_resources/_vendor/packaging/_compat.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/_structures.py +68 -0
- data/vendor/pkg_resources/_vendor/packaging/_structures.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/markers.py +287 -0
- data/vendor/pkg_resources/_vendor/packaging/markers.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/requirements.py +127 -0
- data/vendor/pkg_resources/_vendor/packaging/requirements.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/specifiers.py +774 -0
- data/vendor/pkg_resources/_vendor/packaging/specifiers.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/utils.py +14 -0
- data/vendor/pkg_resources/_vendor/packaging/utils.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/version.py +393 -0
- data/vendor/pkg_resources/_vendor/packaging/version.pyc +0 -0
- data/vendor/pkg_resources/_vendor/pyparsing.py +5696 -0
- data/vendor/pkg_resources/_vendor/pyparsing.pyc +0 -0
- data/vendor/pkg_resources/_vendor/six.py +868 -0
- data/vendor/pkg_resources/_vendor/six.pyc +0 -0
- data/vendor/pkg_resources/extern/__init__.py +73 -0
- data/vendor/pkg_resources/extern/__init__.pyc +0 -0
- data/vendor/requests/__init__.py +86 -0
- data/vendor/requests/__init__.pyc +0 -0
- data/vendor/requests/adapters.py +503 -0
- data/vendor/requests/adapters.pyc +0 -0
- data/vendor/requests/api.py +148 -0
- data/vendor/requests/api.pyc +0 -0
- data/vendor/requests/auth.py +252 -0
- data/vendor/requests/auth.pyc +0 -0
- data/vendor/requests/cacert.pem +5616 -0
- data/vendor/requests/certs.py +25 -0
- data/vendor/requests/certs.pyc +0 -0
- data/vendor/requests/compat.py +66 -0
- data/vendor/requests/compat.pyc +0 -0
- data/vendor/requests/cookies.py +540 -0
- data/vendor/requests/cookies.pyc +0 -0
- data/vendor/requests/exceptions.py +114 -0
- data/vendor/requests/exceptions.pyc +0 -0
- data/vendor/requests/hooks.py +34 -0
- data/vendor/requests/hooks.pyc +0 -0
- data/vendor/requests/models.py +873 -0
- data/vendor/requests/models.pyc +0 -0
- data/vendor/requests/packages/__init__.py +36 -0
- data/vendor/requests/packages/__init__.pyc +0 -0
- data/vendor/requests/packages/chardet/__init__.py +32 -0
- data/vendor/requests/packages/chardet/__init__.pyc +0 -0
- data/vendor/requests/packages/chardet/big5freq.py +925 -0
- data/vendor/requests/packages/chardet/big5freq.pyc +0 -0
- data/vendor/requests/packages/chardet/big5prober.py +42 -0
- data/vendor/requests/packages/chardet/big5prober.pyc +0 -0
- data/vendor/requests/packages/chardet/chardetect.py +80 -0
- data/vendor/requests/packages/chardet/chardetect.pyc +0 -0
- data/vendor/requests/packages/chardet/chardistribution.py +231 -0
- data/vendor/requests/packages/chardet/chardistribution.pyc +0 -0
- data/vendor/requests/packages/chardet/charsetgroupprober.py +106 -0
- data/vendor/requests/packages/chardet/charsetgroupprober.pyc +0 -0
- data/vendor/requests/packages/chardet/charsetprober.py +62 -0
- data/vendor/requests/packages/chardet/charsetprober.pyc +0 -0
- data/vendor/requests/packages/chardet/codingstatemachine.py +61 -0
- data/vendor/requests/packages/chardet/codingstatemachine.pyc +0 -0
- data/vendor/requests/packages/chardet/compat.py +34 -0
- data/vendor/requests/packages/chardet/compat.pyc +0 -0
- data/vendor/requests/packages/chardet/constants.py +39 -0
- data/vendor/requests/packages/chardet/constants.pyc +0 -0
- data/vendor/requests/packages/chardet/cp949prober.py +44 -0
- data/vendor/requests/packages/chardet/cp949prober.pyc +0 -0
- data/vendor/requests/packages/chardet/escprober.py +86 -0
- data/vendor/requests/packages/chardet/escprober.pyc +0 -0
- data/vendor/requests/packages/chardet/escsm.py +242 -0
- data/vendor/requests/packages/chardet/escsm.pyc +0 -0
- data/vendor/requests/packages/chardet/eucjpprober.py +90 -0
- data/vendor/requests/packages/chardet/eucjpprober.pyc +0 -0
- data/vendor/requests/packages/chardet/euckrfreq.py +596 -0
- data/vendor/requests/packages/chardet/euckrfreq.pyc +0 -0
- data/vendor/requests/packages/chardet/euckrprober.py +42 -0
- data/vendor/requests/packages/chardet/euckrprober.pyc +0 -0
- data/vendor/requests/packages/chardet/euctwfreq.py +428 -0
- data/vendor/requests/packages/chardet/euctwfreq.pyc +0 -0
- data/vendor/requests/packages/chardet/euctwprober.py +41 -0
- data/vendor/requests/packages/chardet/euctwprober.pyc +0 -0
- data/vendor/requests/packages/chardet/gb2312freq.py +472 -0
- data/vendor/requests/packages/chardet/gb2312freq.pyc +0 -0
- data/vendor/requests/packages/chardet/gb2312prober.py +41 -0
- data/vendor/requests/packages/chardet/gb2312prober.pyc +0 -0
- data/vendor/requests/packages/chardet/hebrewprober.py +283 -0
- data/vendor/requests/packages/chardet/hebrewprober.pyc +0 -0
- data/vendor/requests/packages/chardet/jisfreq.py +569 -0
- data/vendor/requests/packages/chardet/jisfreq.pyc +0 -0
- data/vendor/requests/packages/chardet/jpcntx.py +227 -0
- data/vendor/requests/packages/chardet/jpcntx.pyc +0 -0
- data/vendor/requests/packages/chardet/langbulgarianmodel.py +229 -0
- data/vendor/requests/packages/chardet/langbulgarianmodel.pyc +0 -0
- data/vendor/requests/packages/chardet/langcyrillicmodel.py +329 -0
- data/vendor/requests/packages/chardet/langcyrillicmodel.pyc +0 -0
- data/vendor/requests/packages/chardet/langgreekmodel.py +225 -0
- data/vendor/requests/packages/chardet/langgreekmodel.pyc +0 -0
- data/vendor/requests/packages/chardet/langhebrewmodel.py +201 -0
- data/vendor/requests/packages/chardet/langhebrewmodel.pyc +0 -0
- data/vendor/requests/packages/chardet/langhungarianmodel.py +225 -0
- data/vendor/requests/packages/chardet/langhungarianmodel.pyc +0 -0
- data/vendor/requests/packages/chardet/langthaimodel.py +200 -0
- data/vendor/requests/packages/chardet/langthaimodel.pyc +0 -0
- data/vendor/requests/packages/chardet/latin1prober.py +139 -0
- data/vendor/requests/packages/chardet/latin1prober.pyc +0 -0
- data/vendor/requests/packages/chardet/mbcharsetprober.py +86 -0
- data/vendor/requests/packages/chardet/mbcharsetprober.pyc +0 -0
- data/vendor/requests/packages/chardet/mbcsgroupprober.py +54 -0
- data/vendor/requests/packages/chardet/mbcsgroupprober.pyc +0 -0
- data/vendor/requests/packages/chardet/mbcssm.py +572 -0
- data/vendor/requests/packages/chardet/mbcssm.pyc +0 -0
- data/vendor/requests/packages/chardet/sbcharsetprober.py +120 -0
- data/vendor/requests/packages/chardet/sbcharsetprober.pyc +0 -0
- data/vendor/requests/packages/chardet/sbcsgroupprober.py +69 -0
- data/vendor/requests/packages/chardet/sbcsgroupprober.pyc +0 -0
- data/vendor/requests/packages/chardet/sjisprober.py +91 -0
- data/vendor/requests/packages/chardet/sjisprober.pyc +0 -0
- data/vendor/requests/packages/chardet/universaldetector.py +170 -0
- data/vendor/requests/packages/chardet/universaldetector.pyc +0 -0
- data/vendor/requests/packages/chardet/utf8prober.py +76 -0
- data/vendor/requests/packages/chardet/utf8prober.pyc +0 -0
- data/vendor/requests/packages/urllib3/__init__.py +96 -0
- data/vendor/requests/packages/urllib3/__init__.pyc +0 -0
- data/vendor/requests/packages/urllib3/_collections.py +324 -0
- data/vendor/requests/packages/urllib3/_collections.pyc +0 -0
- data/vendor/requests/packages/urllib3/connection.py +330 -0
- data/vendor/requests/packages/urllib3/connection.pyc +0 -0
- data/vendor/requests/packages/urllib3/connectionpool.py +866 -0
- data/vendor/requests/packages/urllib3/connectionpool.pyc +0 -0
- data/vendor/requests/packages/urllib3/contrib/__init__.py +0 -0
- data/vendor/requests/packages/urllib3/contrib/__init__.pyc +0 -0
- data/vendor/requests/packages/urllib3/contrib/appengine.py +231 -0
- data/vendor/requests/packages/urllib3/contrib/appengine.pyc +0 -0
- data/vendor/requests/packages/urllib3/contrib/ntlmpool.py +115 -0
- data/vendor/requests/packages/urllib3/contrib/ntlmpool.pyc +0 -0
- data/vendor/requests/packages/urllib3/contrib/pyopenssl.py +358 -0
- data/vendor/requests/packages/urllib3/contrib/pyopenssl.pyc +0 -0
- data/vendor/requests/packages/urllib3/contrib/socks.py +172 -0
- data/vendor/requests/packages/urllib3/contrib/socks.pyc +0 -0
- data/vendor/requests/packages/urllib3/exceptions.py +209 -0
- data/vendor/requests/packages/urllib3/exceptions.pyc +0 -0
- data/vendor/requests/packages/urllib3/fields.py +178 -0
- data/vendor/requests/packages/urllib3/fields.pyc +0 -0
- data/vendor/requests/packages/urllib3/filepost.py +94 -0
- data/vendor/requests/packages/urllib3/filepost.pyc +0 -0
- data/vendor/requests/packages/urllib3/packages/__init__.py +5 -0
- data/vendor/requests/packages/urllib3/packages/__init__.pyc +0 -0
- data/vendor/requests/packages/urllib3/packages/ordered_dict.py +259 -0
- data/vendor/requests/packages/urllib3/packages/ordered_dict.pyc +0 -0
- data/vendor/requests/packages/urllib3/packages/six.py +868 -0
- data/vendor/requests/packages/urllib3/packages/six.pyc +0 -0
- data/vendor/requests/packages/urllib3/packages/ssl_match_hostname/__init__.py +13 -0
- data/vendor/requests/packages/urllib3/packages/ssl_match_hostname/__init__.pyc +0 -0
- data/vendor/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.py +105 -0
- data/vendor/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.pyc +0 -0
- data/vendor/requests/packages/urllib3/poolmanager.py +367 -0
- data/vendor/requests/packages/urllib3/poolmanager.pyc +0 -0
- data/vendor/requests/packages/urllib3/request.py +151 -0
- data/vendor/requests/packages/urllib3/request.pyc +0 -0
- data/vendor/requests/packages/urllib3/response.py +530 -0
- data/vendor/requests/packages/urllib3/response.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/__init__.py +46 -0
- data/vendor/requests/packages/urllib3/util/__init__.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/connection.py +144 -0
- data/vendor/requests/packages/urllib3/util/connection.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/request.py +72 -0
- data/vendor/requests/packages/urllib3/util/request.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/response.py +74 -0
- data/vendor/requests/packages/urllib3/util/response.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/retry.py +300 -0
- data/vendor/requests/packages/urllib3/util/retry.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/ssl_.py +320 -0
- data/vendor/requests/packages/urllib3/util/ssl_.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/timeout.py +242 -0
- data/vendor/requests/packages/urllib3/util/timeout.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/url.py +217 -0
- data/vendor/requests/packages/urllib3/util/url.pyc +0 -0
- data/vendor/requests/sessions.py +712 -0
- data/vendor/requests/sessions.pyc +0 -0
- data/vendor/requests/status_codes.py +91 -0
- data/vendor/requests/status_codes.pyc +0 -0
- data/vendor/requests/structures.py +105 -0
- data/vendor/requests/structures.pyc +0 -0
- data/vendor/requests/utils.py +817 -0
- data/vendor/requests/utils.pyc +0 -0
- data/vendor/requests-2.11.1.dist-info/DESCRIPTION.rst +1294 -0
- data/vendor/requests-2.11.1.dist-info/INSTALLER +1 -0
- data/vendor/requests-2.11.1.dist-info/METADATA +1323 -0
- data/vendor/requests-2.11.1.dist-info/RECORD +170 -0
- data/vendor/requests-2.11.1.dist-info/WHEEL +6 -0
- data/vendor/requests-2.11.1.dist-info/metadata.json +1 -0
- data/vendor/requests-2.11.1.dist-info/top_level.txt +1 -0
- data/vendor/rigid/__init__.py +1 -0
- data/vendor/rigid/__init__.pyc +0 -0
- data/vendor/rigid/api.py +129 -0
- data/vendor/rigid/api.pyc +0 -0
- data/vendor/rigid/commands/__init__.py +260 -0
- data/vendor/rigid/commands/__init__.pyc +0 -0
- data/vendor/rigid/commands/deploy.py +0 -0
- data/vendor/rigid/commands/deploy.pyc +0 -0
- data/vendor/rigid/deploy.py +70 -0
- data/vendor/rigid/deploy.pyc +0 -0
- data/vendor/rigid/file_scanner.py +63 -0
- data/vendor/rigid/file_scanner.pyc +0 -0
- data/vendor/rigid/utils.py +17 -0
- data/vendor/rigid/utils.pyc +0 -0
- data/vendor/rigid-0.2.0.dist-info/DESCRIPTION.rst +3 -0
- data/vendor/rigid-0.2.0.dist-info/INSTALLER +1 -0
- data/vendor/rigid-0.2.0.dist-info/METADATA +23 -0
- data/vendor/rigid-0.2.0.dist-info/RECORD +49 -0
- data/vendor/rigid-0.2.0.dist-info/WHEEL +5 -0
- data/vendor/rigid-0.2.0.dist-info/entry_points.txt +3 -0
- data/vendor/rigid-0.2.0.dist-info/metadata.json +1 -0
- data/vendor/rigid-0.2.0.dist-info/top_level.txt +2 -0
- data/vendor/setuptools-28.8.0.dist-info/DESCRIPTION.rst +243 -0
- data/vendor/setuptools-28.8.0.dist-info/INSTALLER +1 -0
- data/vendor/setuptools-28.8.0.dist-info/METADATA +272 -0
- data/vendor/setuptools-28.8.0.dist-info/RECORD +143 -0
- data/vendor/setuptools-28.8.0.dist-info/WHEEL +6 -0
- data/vendor/setuptools-28.8.0.dist-info/dependency_links.txt +2 -0
- data/vendor/setuptools-28.8.0.dist-info/entry_points.txt +63 -0
- data/vendor/setuptools-28.8.0.dist-info/metadata.json +1 -0
- data/vendor/setuptools-28.8.0.dist-info/top_level.txt +3 -0
- data/vendor/setuptools-28.8.0.dist-info/zip-safe +1 -0
- data/vendor/tests/__init__.py +0 -0
- data/vendor/tests/__init__.pyc +0 -0
- data/vendor/tests/integration/__init__.py +0 -0
- data/vendor/tests/integration/__init__.pyc +0 -0
- data/vendor/tests/integration/test_app.py +63 -0
- data/vendor/tests/integration/test_app.pyc +0 -0
- data/vendor/tests/integration/test_apps.py +27 -0
- data/vendor/tests/integration/test_apps.pyc +0 -0
- data/vendor/tests/integration/test_deploy.py +128 -0
- data/vendor/tests/integration/test_deploy.pyc +0 -0
- data/vendor/tests/integration/test_domains.py +35 -0
- data/vendor/tests/integration/test_domains.pyc +0 -0
- data/vendor/tests/integration/test_login.py +37 -0
- data/vendor/tests/integration/test_login.pyc +0 -0
- data/vendor/tests/integration/test_promote.py +24 -0
- data/vendor/tests/integration/test_promote.pyc +0 -0
- data/vendor/tests/integration/test_token.py +33 -0
- data/vendor/tests/integration/test_token.pyc +0 -0
- data/vendor/tests/integration/test_whoami.py +24 -0
- data/vendor/tests/integration/test_whoami.pyc +0 -0
- data/vendor/tests/test_deploy.py +33 -0
- data/vendor/tests/test_deploy.pyc +0 -0
- data/vendor/tests/test_file_scanner.py +89 -0
- data/vendor/tests/test_file_scanner.pyc +0 -0
- data/vendor/tests/utils.py +78 -0
- data/vendor/tests/utils.pyc +0 -0
- data/vendor/wheel-0.30.0a0.dist-info/DESCRIPTION.rst +325 -0
- data/vendor/wheel-0.30.0a0.dist-info/INSTALLER +1 -0
- data/vendor/wheel-0.30.0a0.dist-info/LICENSE.txt +22 -0
- data/vendor/wheel-0.30.0a0.dist-info/METADATA +357 -0
- data/vendor/wheel-0.30.0a0.dist-info/RECORD +86 -0
- data/vendor/wheel-0.30.0a0.dist-info/WHEEL +6 -0
- data/vendor/wheel-0.30.0a0.dist-info/entry_points.txt +6 -0
- data/vendor/wheel-0.30.0a0.dist-info/metadata.json +1 -0
- data/vendor/wheel-0.30.0a0.dist-info/top_level.txt +1 -0
- data/vendor/yaml/__init__.py +315 -0
- data/vendor/yaml/__init__.pyc +0 -0
- data/vendor/yaml/composer.py +139 -0
- data/vendor/yaml/composer.pyc +0 -0
- data/vendor/yaml/constructor.py +675 -0
- data/vendor/yaml/constructor.pyc +0 -0
- data/vendor/yaml/cyaml.py +85 -0
- data/vendor/yaml/cyaml.pyc +0 -0
- data/vendor/yaml/dumper.py +62 -0
- data/vendor/yaml/dumper.pyc +0 -0
- data/vendor/yaml/emitter.py +1140 -0
- data/vendor/yaml/emitter.pyc +0 -0
- data/vendor/yaml/error.py +75 -0
- data/vendor/yaml/error.pyc +0 -0
- data/vendor/yaml/events.py +86 -0
- data/vendor/yaml/events.pyc +0 -0
- data/vendor/yaml/loader.py +40 -0
- data/vendor/yaml/loader.pyc +0 -0
- data/vendor/yaml/nodes.py +49 -0
- data/vendor/yaml/nodes.pyc +0 -0
- data/vendor/yaml/parser.py +589 -0
- data/vendor/yaml/parser.pyc +0 -0
- data/vendor/yaml/reader.py +190 -0
- data/vendor/yaml/reader.pyc +0 -0
- data/vendor/yaml/representer.py +486 -0
- data/vendor/yaml/representer.pyc +0 -0
- data/vendor/yaml/resolver.py +227 -0
- data/vendor/yaml/resolver.pyc +0 -0
- data/vendor/yaml/scanner.py +1453 -0
- data/vendor/yaml/scanner.pyc +0 -0
- data/vendor/yaml/serializer.py +111 -0
- data/vendor/yaml/serializer.pyc +0 -0
- data/vendor/yaml/tokens.py +104 -0
- data/vendor/yaml/tokens.pyc +0 -0
- metadata +407 -0
@@ -0,0 +1,256 @@
|
|
1
|
+
from contextlib import contextmanager
|
2
|
+
from .termui import get_terminal_size
|
3
|
+
from .parser import split_opt
|
4
|
+
from ._compat import term_len
|
5
|
+
|
6
|
+
|
7
|
+
# Can force a width. This is used by the test system
|
8
|
+
FORCED_WIDTH = None
|
9
|
+
|
10
|
+
|
11
|
+
def measure_table(rows):
|
12
|
+
widths = {}
|
13
|
+
for row in rows:
|
14
|
+
for idx, col in enumerate(row):
|
15
|
+
widths[idx] = max(widths.get(idx, 0), term_len(col))
|
16
|
+
return tuple(y for x, y in sorted(widths.items()))
|
17
|
+
|
18
|
+
|
19
|
+
def iter_rows(rows, col_count):
|
20
|
+
for row in rows:
|
21
|
+
row = tuple(row)
|
22
|
+
yield row + ('',) * (col_count - len(row))
|
23
|
+
|
24
|
+
|
25
|
+
def wrap_text(text, width=78, initial_indent='', subsequent_indent='',
|
26
|
+
preserve_paragraphs=False):
|
27
|
+
"""A helper function that intelligently wraps text. By default, it
|
28
|
+
assumes that it operates on a single paragraph of text but if the
|
29
|
+
`preserve_paragraphs` parameter is provided it will intelligently
|
30
|
+
handle paragraphs (defined by two empty lines).
|
31
|
+
|
32
|
+
If paragraphs are handled, a paragraph can be prefixed with an empty
|
33
|
+
line containing the ``\\b`` character (``\\x08``) to indicate that
|
34
|
+
no rewrapping should happen in that block.
|
35
|
+
|
36
|
+
:param text: the text that should be rewrapped.
|
37
|
+
:param width: the maximum width for the text.
|
38
|
+
:param initial_indent: the initial indent that should be placed on the
|
39
|
+
first line as a string.
|
40
|
+
:param subsequent_indent: the indent string that should be placed on
|
41
|
+
each consecutive line.
|
42
|
+
:param preserve_paragraphs: if this flag is set then the wrapping will
|
43
|
+
intelligently handle paragraphs.
|
44
|
+
"""
|
45
|
+
from ._textwrap import TextWrapper
|
46
|
+
text = text.expandtabs()
|
47
|
+
wrapper = TextWrapper(width, initial_indent=initial_indent,
|
48
|
+
subsequent_indent=subsequent_indent,
|
49
|
+
replace_whitespace=False)
|
50
|
+
if not preserve_paragraphs:
|
51
|
+
return wrapper.fill(text)
|
52
|
+
|
53
|
+
p = []
|
54
|
+
buf = []
|
55
|
+
indent = None
|
56
|
+
|
57
|
+
def _flush_par():
|
58
|
+
if not buf:
|
59
|
+
return
|
60
|
+
if buf[0].strip() == '\b':
|
61
|
+
p.append((indent or 0, True, '\n'.join(buf[1:])))
|
62
|
+
else:
|
63
|
+
p.append((indent or 0, False, ' '.join(buf)))
|
64
|
+
del buf[:]
|
65
|
+
|
66
|
+
for line in text.splitlines():
|
67
|
+
if not line:
|
68
|
+
_flush_par()
|
69
|
+
indent = None
|
70
|
+
else:
|
71
|
+
if indent is None:
|
72
|
+
orig_len = term_len(line)
|
73
|
+
line = line.lstrip()
|
74
|
+
indent = orig_len - term_len(line)
|
75
|
+
buf.append(line)
|
76
|
+
_flush_par()
|
77
|
+
|
78
|
+
rv = []
|
79
|
+
for indent, raw, text in p:
|
80
|
+
with wrapper.extra_indent(' ' * indent):
|
81
|
+
if raw:
|
82
|
+
rv.append(wrapper.indent_only(text))
|
83
|
+
else:
|
84
|
+
rv.append(wrapper.fill(text))
|
85
|
+
|
86
|
+
return '\n\n'.join(rv)
|
87
|
+
|
88
|
+
|
89
|
+
class HelpFormatter(object):
|
90
|
+
"""This class helps with formatting text-based help pages. It's
|
91
|
+
usually just needed for very special internal cases, but it's also
|
92
|
+
exposed so that developers can write their own fancy outputs.
|
93
|
+
|
94
|
+
At present, it always writes into memory.
|
95
|
+
|
96
|
+
:param indent_increment: the additional increment for each level.
|
97
|
+
:param width: the width for the text. This defaults to the terminal
|
98
|
+
width clamped to a maximum of 78.
|
99
|
+
"""
|
100
|
+
|
101
|
+
def __init__(self, indent_increment=2, width=None, max_width=None):
|
102
|
+
self.indent_increment = indent_increment
|
103
|
+
if max_width is None:
|
104
|
+
max_width = 80
|
105
|
+
if width is None:
|
106
|
+
width = FORCED_WIDTH
|
107
|
+
if width is None:
|
108
|
+
width = max(min(get_terminal_size()[0], max_width) - 2, 50)
|
109
|
+
self.width = width
|
110
|
+
self.current_indent = 0
|
111
|
+
self.buffer = []
|
112
|
+
|
113
|
+
def write(self, string):
|
114
|
+
"""Writes a unicode string into the internal buffer."""
|
115
|
+
self.buffer.append(string)
|
116
|
+
|
117
|
+
def indent(self):
|
118
|
+
"""Increases the indentation."""
|
119
|
+
self.current_indent += self.indent_increment
|
120
|
+
|
121
|
+
def dedent(self):
|
122
|
+
"""Decreases the indentation."""
|
123
|
+
self.current_indent -= self.indent_increment
|
124
|
+
|
125
|
+
def write_usage(self, prog, args='', prefix='Usage: '):
|
126
|
+
"""Writes a usage line into the buffer.
|
127
|
+
|
128
|
+
:param prog: the program name.
|
129
|
+
:param args: whitespace separated list of arguments.
|
130
|
+
:param prefix: the prefix for the first line.
|
131
|
+
"""
|
132
|
+
usage_prefix = '%*s%s ' % (self.current_indent, prefix, prog)
|
133
|
+
text_width = self.width - self.current_indent
|
134
|
+
|
135
|
+
if text_width >= (term_len(usage_prefix) + 20):
|
136
|
+
# The arguments will fit to the right of the prefix.
|
137
|
+
indent = ' ' * term_len(usage_prefix)
|
138
|
+
self.write(wrap_text(args, text_width,
|
139
|
+
initial_indent=usage_prefix,
|
140
|
+
subsequent_indent=indent))
|
141
|
+
else:
|
142
|
+
# The prefix is too long, put the arguments on the next line.
|
143
|
+
self.write(usage_prefix)
|
144
|
+
self.write('\n')
|
145
|
+
indent = ' ' * (max(self.current_indent, term_len(prefix)) + 4)
|
146
|
+
self.write(wrap_text(args, text_width,
|
147
|
+
initial_indent=indent,
|
148
|
+
subsequent_indent=indent))
|
149
|
+
|
150
|
+
self.write('\n')
|
151
|
+
|
152
|
+
def write_heading(self, heading):
|
153
|
+
"""Writes a heading into the buffer."""
|
154
|
+
self.write('%*s%s:\n' % (self.current_indent, '', heading))
|
155
|
+
|
156
|
+
def write_paragraph(self):
|
157
|
+
"""Writes a paragraph into the buffer."""
|
158
|
+
if self.buffer:
|
159
|
+
self.write('\n')
|
160
|
+
|
161
|
+
def write_text(self, text):
|
162
|
+
"""Writes re-indented text into the buffer. This rewraps and
|
163
|
+
preserves paragraphs.
|
164
|
+
"""
|
165
|
+
text_width = max(self.width - self.current_indent, 11)
|
166
|
+
indent = ' ' * self.current_indent
|
167
|
+
self.write(wrap_text(text, text_width,
|
168
|
+
initial_indent=indent,
|
169
|
+
subsequent_indent=indent,
|
170
|
+
preserve_paragraphs=True))
|
171
|
+
self.write('\n')
|
172
|
+
|
173
|
+
def write_dl(self, rows, col_max=30, col_spacing=2):
|
174
|
+
"""Writes a definition list into the buffer. This is how options
|
175
|
+
and commands are usually formatted.
|
176
|
+
|
177
|
+
:param rows: a list of two item tuples for the terms and values.
|
178
|
+
:param col_max: the maximum width of the first column.
|
179
|
+
:param col_spacing: the number of spaces between the first and
|
180
|
+
second column.
|
181
|
+
"""
|
182
|
+
rows = list(rows)
|
183
|
+
widths = measure_table(rows)
|
184
|
+
if len(widths) != 2:
|
185
|
+
raise TypeError('Expected two columns for definition list')
|
186
|
+
|
187
|
+
first_col = min(widths[0], col_max) + col_spacing
|
188
|
+
|
189
|
+
for first, second in iter_rows(rows, len(widths)):
|
190
|
+
self.write('%*s%s' % (self.current_indent, '', first))
|
191
|
+
if not second:
|
192
|
+
self.write('\n')
|
193
|
+
continue
|
194
|
+
if term_len(first) <= first_col - col_spacing:
|
195
|
+
self.write(' ' * (first_col - term_len(first)))
|
196
|
+
else:
|
197
|
+
self.write('\n')
|
198
|
+
self.write(' ' * (first_col + self.current_indent))
|
199
|
+
|
200
|
+
text_width = max(self.width - first_col - 2, 10)
|
201
|
+
lines = iter(wrap_text(second, text_width).splitlines())
|
202
|
+
if lines:
|
203
|
+
self.write(next(lines) + '\n')
|
204
|
+
for line in lines:
|
205
|
+
self.write('%*s%s\n' % (
|
206
|
+
first_col + self.current_indent, '', line))
|
207
|
+
else:
|
208
|
+
self.write('\n')
|
209
|
+
|
210
|
+
@contextmanager
|
211
|
+
def section(self, name):
|
212
|
+
"""Helpful context manager that writes a paragraph, a heading,
|
213
|
+
and the indents.
|
214
|
+
|
215
|
+
:param name: the section name that is written as heading.
|
216
|
+
"""
|
217
|
+
self.write_paragraph()
|
218
|
+
self.write_heading(name)
|
219
|
+
self.indent()
|
220
|
+
try:
|
221
|
+
yield
|
222
|
+
finally:
|
223
|
+
self.dedent()
|
224
|
+
|
225
|
+
@contextmanager
|
226
|
+
def indentation(self):
|
227
|
+
"""A context manager that increases the indentation."""
|
228
|
+
self.indent()
|
229
|
+
try:
|
230
|
+
yield
|
231
|
+
finally:
|
232
|
+
self.dedent()
|
233
|
+
|
234
|
+
def getvalue(self):
|
235
|
+
"""Returns the buffer contents."""
|
236
|
+
return ''.join(self.buffer)
|
237
|
+
|
238
|
+
|
239
|
+
def join_options(options):
|
240
|
+
"""Given a list of option strings this joins them in the most appropriate
|
241
|
+
way and returns them in the form ``(formatted_string,
|
242
|
+
any_prefix_is_slash)`` where the second item in the tuple is a flag that
|
243
|
+
indicates if any of the option prefixes was a slash.
|
244
|
+
"""
|
245
|
+
rv = []
|
246
|
+
any_prefix_is_slash = False
|
247
|
+
for opt in options:
|
248
|
+
prefix = split_opt(opt)[0]
|
249
|
+
if prefix == '/':
|
250
|
+
any_prefix_is_slash = True
|
251
|
+
rv.append((len(prefix), opt))
|
252
|
+
|
253
|
+
rv.sort(key=lambda x: x[0])
|
254
|
+
|
255
|
+
rv = ', '.join(x[1] for x in rv)
|
256
|
+
return rv, any_prefix_is_slash
|
Binary file
|
@@ -0,0 +1,48 @@
|
|
1
|
+
from threading import local
|
2
|
+
|
3
|
+
|
4
|
+
_local = local()
|
5
|
+
|
6
|
+
|
7
|
+
def get_current_context(silent=False):
|
8
|
+
"""Returns the current click context. This can be used as a way to
|
9
|
+
access the current context object from anywhere. This is a more implicit
|
10
|
+
alternative to the :func:`pass_context` decorator. This function is
|
11
|
+
primarily useful for helpers such as :func:`echo` which might be
|
12
|
+
interested in changing it's behavior based on the current context.
|
13
|
+
|
14
|
+
To push the current context, :meth:`Context.scope` can be used.
|
15
|
+
|
16
|
+
.. versionadded:: 5.0
|
17
|
+
|
18
|
+
:param silent: is set to `True` the return value is `None` if no context
|
19
|
+
is available. The default behavior is to raise a
|
20
|
+
:exc:`RuntimeError`.
|
21
|
+
"""
|
22
|
+
try:
|
23
|
+
return getattr(_local, 'stack')[-1]
|
24
|
+
except (AttributeError, IndexError):
|
25
|
+
if not silent:
|
26
|
+
raise RuntimeError('There is no active click context.')
|
27
|
+
|
28
|
+
|
29
|
+
def push_context(ctx):
|
30
|
+
"""Pushes a new context to the current stack."""
|
31
|
+
_local.__dict__.setdefault('stack', []).append(ctx)
|
32
|
+
|
33
|
+
|
34
|
+
def pop_context():
|
35
|
+
"""Removes the top level from the stack."""
|
36
|
+
_local.stack.pop()
|
37
|
+
|
38
|
+
|
39
|
+
def resolve_color_default(color=None):
|
40
|
+
""""Internal helper to get the default value of the color flag. If a
|
41
|
+
value is passed it's returned unchanged, otherwise it's looked up from
|
42
|
+
the current context.
|
43
|
+
"""
|
44
|
+
if color is not None:
|
45
|
+
return color
|
46
|
+
ctx = get_current_context(silent=True)
|
47
|
+
if ctx is not None:
|
48
|
+
return ctx.color
|
Binary file
|