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,322 @@
|
|
1
|
+
import os
|
2
|
+
import sys
|
3
|
+
import shutil
|
4
|
+
import tempfile
|
5
|
+
import contextlib
|
6
|
+
|
7
|
+
from ._compat import iteritems, PY2
|
8
|
+
|
9
|
+
|
10
|
+
# If someone wants to vendor click, we want to ensure the
|
11
|
+
# correct package is discovered. Ideally we could use a
|
12
|
+
# relative import here but unfortunately Python does not
|
13
|
+
# support that.
|
14
|
+
clickpkg = sys.modules[__name__.rsplit('.', 1)[0]]
|
15
|
+
|
16
|
+
|
17
|
+
if PY2:
|
18
|
+
from cStringIO import StringIO
|
19
|
+
else:
|
20
|
+
import io
|
21
|
+
from ._compat import _find_binary_reader
|
22
|
+
|
23
|
+
|
24
|
+
class EchoingStdin(object):
|
25
|
+
|
26
|
+
def __init__(self, input, output):
|
27
|
+
self._input = input
|
28
|
+
self._output = output
|
29
|
+
|
30
|
+
def __getattr__(self, x):
|
31
|
+
return getattr(self._input, x)
|
32
|
+
|
33
|
+
def _echo(self, rv):
|
34
|
+
self._output.write(rv)
|
35
|
+
return rv
|
36
|
+
|
37
|
+
def read(self, n=-1):
|
38
|
+
return self._echo(self._input.read(n))
|
39
|
+
|
40
|
+
def readline(self, n=-1):
|
41
|
+
return self._echo(self._input.readline(n))
|
42
|
+
|
43
|
+
def readlines(self):
|
44
|
+
return [self._echo(x) for x in self._input.readlines()]
|
45
|
+
|
46
|
+
def __iter__(self):
|
47
|
+
return iter(self._echo(x) for x in self._input)
|
48
|
+
|
49
|
+
def __repr__(self):
|
50
|
+
return repr(self._input)
|
51
|
+
|
52
|
+
|
53
|
+
def make_input_stream(input, charset):
|
54
|
+
# Is already an input stream.
|
55
|
+
if hasattr(input, 'read'):
|
56
|
+
if PY2:
|
57
|
+
return input
|
58
|
+
rv = _find_binary_reader(input)
|
59
|
+
if rv is not None:
|
60
|
+
return rv
|
61
|
+
raise TypeError('Could not find binary reader for input stream.')
|
62
|
+
|
63
|
+
if input is None:
|
64
|
+
input = b''
|
65
|
+
elif not isinstance(input, bytes):
|
66
|
+
input = input.encode(charset)
|
67
|
+
if PY2:
|
68
|
+
return StringIO(input)
|
69
|
+
return io.BytesIO(input)
|
70
|
+
|
71
|
+
|
72
|
+
class Result(object):
|
73
|
+
"""Holds the captured result of an invoked CLI script."""
|
74
|
+
|
75
|
+
def __init__(self, runner, output_bytes, exit_code, exception,
|
76
|
+
exc_info=None):
|
77
|
+
#: The runner that created the result
|
78
|
+
self.runner = runner
|
79
|
+
#: The output as bytes.
|
80
|
+
self.output_bytes = output_bytes
|
81
|
+
#: The exit code as integer.
|
82
|
+
self.exit_code = exit_code
|
83
|
+
#: The exception that happend if one did.
|
84
|
+
self.exception = exception
|
85
|
+
#: The traceback
|
86
|
+
self.exc_info = exc_info
|
87
|
+
|
88
|
+
@property
|
89
|
+
def output(self):
|
90
|
+
"""The output as unicode string."""
|
91
|
+
return self.output_bytes.decode(self.runner.charset, 'replace') \
|
92
|
+
.replace('\r\n', '\n')
|
93
|
+
|
94
|
+
def __repr__(self):
|
95
|
+
return '<Result %s>' % (
|
96
|
+
self.exception and repr(self.exception) or 'okay',
|
97
|
+
)
|
98
|
+
|
99
|
+
|
100
|
+
class CliRunner(object):
|
101
|
+
"""The CLI runner provides functionality to invoke a Click command line
|
102
|
+
script for unittesting purposes in a isolated environment. This only
|
103
|
+
works in single-threaded systems without any concurrency as it changes the
|
104
|
+
global interpreter state.
|
105
|
+
|
106
|
+
:param charset: the character set for the input and output data. This is
|
107
|
+
UTF-8 by default and should not be changed currently as
|
108
|
+
the reporting to Click only works in Python 2 properly.
|
109
|
+
:param env: a dictionary with environment variables for overriding.
|
110
|
+
:param echo_stdin: if this is set to `True`, then reading from stdin writes
|
111
|
+
to stdout. This is useful for showing examples in
|
112
|
+
some circumstances. Note that regular prompts
|
113
|
+
will automatically echo the input.
|
114
|
+
"""
|
115
|
+
|
116
|
+
def __init__(self, charset=None, env=None, echo_stdin=False):
|
117
|
+
if charset is None:
|
118
|
+
charset = 'utf-8'
|
119
|
+
self.charset = charset
|
120
|
+
self.env = env or {}
|
121
|
+
self.echo_stdin = echo_stdin
|
122
|
+
|
123
|
+
def get_default_prog_name(self, cli):
|
124
|
+
"""Given a command object it will return the default program name
|
125
|
+
for it. The default is the `name` attribute or ``"root"`` if not
|
126
|
+
set.
|
127
|
+
"""
|
128
|
+
return cli.name or 'root'
|
129
|
+
|
130
|
+
def make_env(self, overrides=None):
|
131
|
+
"""Returns the environment overrides for invoking a script."""
|
132
|
+
rv = dict(self.env)
|
133
|
+
if overrides:
|
134
|
+
rv.update(overrides)
|
135
|
+
return rv
|
136
|
+
|
137
|
+
@contextlib.contextmanager
|
138
|
+
def isolation(self, input=None, env=None, color=False):
|
139
|
+
"""A context manager that sets up the isolation for invoking of a
|
140
|
+
command line tool. This sets up stdin with the given input data
|
141
|
+
and `os.environ` with the overrides from the given dictionary.
|
142
|
+
This also rebinds some internals in Click to be mocked (like the
|
143
|
+
prompt functionality).
|
144
|
+
|
145
|
+
This is automatically done in the :meth:`invoke` method.
|
146
|
+
|
147
|
+
.. versionadded:: 4.0
|
148
|
+
The ``color`` parameter was added.
|
149
|
+
|
150
|
+
:param input: the input stream to put into sys.stdin.
|
151
|
+
:param env: the environment overrides as dictionary.
|
152
|
+
:param color: whether the output should contain color codes. The
|
153
|
+
application can still override this explicitly.
|
154
|
+
"""
|
155
|
+
input = make_input_stream(input, self.charset)
|
156
|
+
|
157
|
+
old_stdin = sys.stdin
|
158
|
+
old_stdout = sys.stdout
|
159
|
+
old_stderr = sys.stderr
|
160
|
+
old_forced_width = clickpkg.formatting.FORCED_WIDTH
|
161
|
+
clickpkg.formatting.FORCED_WIDTH = 80
|
162
|
+
|
163
|
+
env = self.make_env(env)
|
164
|
+
|
165
|
+
if PY2:
|
166
|
+
sys.stdout = sys.stderr = bytes_output = StringIO()
|
167
|
+
if self.echo_stdin:
|
168
|
+
input = EchoingStdin(input, bytes_output)
|
169
|
+
else:
|
170
|
+
bytes_output = io.BytesIO()
|
171
|
+
if self.echo_stdin:
|
172
|
+
input = EchoingStdin(input, bytes_output)
|
173
|
+
input = io.TextIOWrapper(input, encoding=self.charset)
|
174
|
+
sys.stdout = sys.stderr = io.TextIOWrapper(
|
175
|
+
bytes_output, encoding=self.charset)
|
176
|
+
|
177
|
+
sys.stdin = input
|
178
|
+
|
179
|
+
def visible_input(prompt=None):
|
180
|
+
sys.stdout.write(prompt or '')
|
181
|
+
val = input.readline().rstrip('\r\n')
|
182
|
+
sys.stdout.write(val + '\n')
|
183
|
+
sys.stdout.flush()
|
184
|
+
return val
|
185
|
+
|
186
|
+
def hidden_input(prompt=None):
|
187
|
+
sys.stdout.write((prompt or '') + '\n')
|
188
|
+
sys.stdout.flush()
|
189
|
+
return input.readline().rstrip('\r\n')
|
190
|
+
|
191
|
+
def _getchar(echo):
|
192
|
+
char = sys.stdin.read(1)
|
193
|
+
if echo:
|
194
|
+
sys.stdout.write(char)
|
195
|
+
sys.stdout.flush()
|
196
|
+
return char
|
197
|
+
|
198
|
+
default_color = color
|
199
|
+
def should_strip_ansi(stream=None, color=None):
|
200
|
+
if color is None:
|
201
|
+
return not default_color
|
202
|
+
return not color
|
203
|
+
|
204
|
+
old_visible_prompt_func = clickpkg.termui.visible_prompt_func
|
205
|
+
old_hidden_prompt_func = clickpkg.termui.hidden_prompt_func
|
206
|
+
old__getchar_func = clickpkg.termui._getchar
|
207
|
+
old_should_strip_ansi = clickpkg.utils.should_strip_ansi
|
208
|
+
clickpkg.termui.visible_prompt_func = visible_input
|
209
|
+
clickpkg.termui.hidden_prompt_func = hidden_input
|
210
|
+
clickpkg.termui._getchar = _getchar
|
211
|
+
clickpkg.utils.should_strip_ansi = should_strip_ansi
|
212
|
+
|
213
|
+
old_env = {}
|
214
|
+
try:
|
215
|
+
for key, value in iteritems(env):
|
216
|
+
old_env[key] = os.environ.get(value)
|
217
|
+
if value is None:
|
218
|
+
try:
|
219
|
+
del os.environ[key]
|
220
|
+
except Exception:
|
221
|
+
pass
|
222
|
+
else:
|
223
|
+
os.environ[key] = value
|
224
|
+
yield bytes_output
|
225
|
+
finally:
|
226
|
+
for key, value in iteritems(old_env):
|
227
|
+
if value is None:
|
228
|
+
try:
|
229
|
+
del os.environ[key]
|
230
|
+
except Exception:
|
231
|
+
pass
|
232
|
+
else:
|
233
|
+
os.environ[key] = value
|
234
|
+
sys.stdout = old_stdout
|
235
|
+
sys.stderr = old_stderr
|
236
|
+
sys.stdin = old_stdin
|
237
|
+
clickpkg.termui.visible_prompt_func = old_visible_prompt_func
|
238
|
+
clickpkg.termui.hidden_prompt_func = old_hidden_prompt_func
|
239
|
+
clickpkg.termui._getchar = old__getchar_func
|
240
|
+
clickpkg.utils.should_strip_ansi = old_should_strip_ansi
|
241
|
+
clickpkg.formatting.FORCED_WIDTH = old_forced_width
|
242
|
+
|
243
|
+
def invoke(self, cli, args=None, input=None, env=None,
|
244
|
+
catch_exceptions=True, color=False, **extra):
|
245
|
+
"""Invokes a command in an isolated environment. The arguments are
|
246
|
+
forwarded directly to the command line script, the `extra` keyword
|
247
|
+
arguments are passed to the :meth:`~clickpkg.Command.main` function of
|
248
|
+
the command.
|
249
|
+
|
250
|
+
This returns a :class:`Result` object.
|
251
|
+
|
252
|
+
.. versionadded:: 3.0
|
253
|
+
The ``catch_exceptions`` parameter was added.
|
254
|
+
|
255
|
+
.. versionchanged:: 3.0
|
256
|
+
The result object now has an `exc_info` attribute with the
|
257
|
+
traceback if available.
|
258
|
+
|
259
|
+
.. versionadded:: 4.0
|
260
|
+
The ``color`` parameter was added.
|
261
|
+
|
262
|
+
:param cli: the command to invoke
|
263
|
+
:param args: the arguments to invoke
|
264
|
+
:param input: the input data for `sys.stdin`.
|
265
|
+
:param env: the environment overrides.
|
266
|
+
:param catch_exceptions: Whether to catch any other exceptions than
|
267
|
+
``SystemExit``.
|
268
|
+
:param extra: the keyword arguments to pass to :meth:`main`.
|
269
|
+
:param color: whether the output should contain color codes. The
|
270
|
+
application can still override this explicitly.
|
271
|
+
"""
|
272
|
+
exc_info = None
|
273
|
+
with self.isolation(input=input, env=env, color=color) as out:
|
274
|
+
exception = None
|
275
|
+
exit_code = 0
|
276
|
+
|
277
|
+
try:
|
278
|
+
cli.main(args=args or (),
|
279
|
+
prog_name=self.get_default_prog_name(cli), **extra)
|
280
|
+
except SystemExit as e:
|
281
|
+
if e.code != 0:
|
282
|
+
exception = e
|
283
|
+
|
284
|
+
exc_info = sys.exc_info()
|
285
|
+
|
286
|
+
exit_code = e.code
|
287
|
+
if not isinstance(exit_code, int):
|
288
|
+
sys.stdout.write(str(exit_code))
|
289
|
+
sys.stdout.write('\n')
|
290
|
+
exit_code = 1
|
291
|
+
except Exception as e:
|
292
|
+
if not catch_exceptions:
|
293
|
+
raise
|
294
|
+
exception = e
|
295
|
+
exit_code = -1
|
296
|
+
exc_info = sys.exc_info()
|
297
|
+
finally:
|
298
|
+
sys.stdout.flush()
|
299
|
+
output = out.getvalue()
|
300
|
+
|
301
|
+
return Result(runner=self,
|
302
|
+
output_bytes=output,
|
303
|
+
exit_code=exit_code,
|
304
|
+
exception=exception,
|
305
|
+
exc_info=exc_info)
|
306
|
+
|
307
|
+
@contextlib.contextmanager
|
308
|
+
def isolated_filesystem(self):
|
309
|
+
"""A context manager that creates a temporary folder and changes
|
310
|
+
the current working directory to it for isolated filesystem tests.
|
311
|
+
"""
|
312
|
+
cwd = os.getcwd()
|
313
|
+
t = tempfile.mkdtemp()
|
314
|
+
os.chdir(t)
|
315
|
+
try:
|
316
|
+
yield t
|
317
|
+
finally:
|
318
|
+
os.chdir(cwd)
|
319
|
+
try:
|
320
|
+
shutil.rmtree(t)
|
321
|
+
except (OSError, IOError):
|
322
|
+
pass
|
Binary file
|