capistrano 2.1.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +20 -0
- data/.travis.yml +7 -0
- data/CHANGELOG.md +89 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +674 -0
- data/README.md +226 -0
- data/Rakefile +5 -0
- data/bin/cap +2 -3
- data/bin/capify +7 -77
- data/capistrano-public_cert.pem +22 -0
- data/capistrano.gemspec +35 -0
- data/features/deploy.feature +52 -0
- data/features/installation.feature +16 -0
- data/features/remote_file_task.feature +14 -0
- data/features/step_definitions/assertions.rb +90 -0
- data/features/step_definitions/cap_commands.rb +8 -0
- data/features/step_definitions/setup.rb +25 -0
- data/features/support/env.rb +12 -0
- data/features/support/remote_command_helpers.rb +20 -0
- data/lib/Capfile +3 -0
- data/lib/capistrano/all.rb +16 -0
- data/lib/capistrano/application.rb +60 -0
- data/lib/capistrano/configuration/question.rb +42 -0
- data/lib/capistrano/configuration/server.rb +133 -0
- data/lib/capistrano/configuration/servers/role_filter.rb +86 -0
- data/lib/capistrano/configuration/servers.rb +53 -58
- data/lib/capistrano/configuration.rb +84 -30
- data/lib/capistrano/console.rb +1 -0
- data/lib/capistrano/defaults.rb +13 -0
- data/lib/capistrano/deploy.rb +3 -0
- data/lib/capistrano/dotfile.rb +3 -0
- data/lib/capistrano/dsl/env.rb +64 -0
- data/lib/capistrano/dsl/paths.rb +94 -0
- data/lib/capistrano/dsl/stages.rb +15 -0
- data/lib/capistrano/dsl/task_enhancements.rb +53 -0
- data/lib/capistrano/dsl.rb +48 -0
- data/lib/capistrano/git.rb +1 -0
- data/lib/capistrano/hg.rb +1 -0
- data/lib/capistrano/i18n.rb +34 -0
- data/lib/capistrano/install.rb +1 -0
- data/lib/capistrano/setup.rb +21 -0
- data/lib/capistrano/tasks/console.rake +21 -0
- data/lib/capistrano/tasks/deploy.rake +204 -0
- data/lib/capistrano/tasks/framework.rake +67 -0
- data/lib/capistrano/tasks/git.rake +62 -0
- data/lib/capistrano/tasks/hg.rake +39 -0
- data/lib/capistrano/tasks/install.rake +39 -0
- data/lib/capistrano/templates/Capfile +26 -0
- data/lib/capistrano/templates/deploy.rb.erb +40 -0
- data/lib/capistrano/templates/stage.rb.erb +42 -0
- data/lib/capistrano/version.rb +1 -20
- data/lib/capistrano/version_validator.rb +37 -0
- data/lib/capistrano.rb +0 -2
- data/spec/integration/dsl_spec.rb +344 -0
- data/spec/integration_spec_helper.rb +7 -0
- data/spec/lib/capistrano/application_spec.rb +61 -0
- data/spec/lib/capistrano/configuration/question_spec.rb +54 -0
- data/spec/lib/capistrano/configuration/server_spec.rb +249 -0
- data/spec/lib/capistrano/configuration/servers/role_filter_spec.rb +140 -0
- data/spec/lib/capistrano/configuration/servers_spec.rb +184 -0
- data/spec/lib/capistrano/configuration_spec.rb +101 -0
- data/spec/lib/capistrano/dsl/env_spec.rb +10 -0
- data/spec/lib/capistrano/dsl/paths_spec.rb +69 -0
- data/spec/lib/capistrano/dsl_spec.rb +63 -0
- data/spec/lib/capistrano/version_validator_spec.rb +103 -0
- data/spec/lib/capistrano_spec.rb +8 -0
- data/spec/spec_helper.rb +15 -0
- data/spec/support/.gitignore +1 -0
- data/spec/support/Vagrantfile +13 -0
- data/spec/support/matchers.rb +5 -0
- data/spec/support/tasks/database.cap +11 -0
- data/spec/support/test_app.rb +138 -0
- metadata +251 -179
- data/CHANGELOG +0 -512
- data/MIT-LICENSE +0 -20
- data/README +0 -43
- data/examples/sample.rb +0 -14
- data/lib/capistrano/callback.rb +0 -45
- data/lib/capistrano/cli/execute.rb +0 -82
- data/lib/capistrano/cli/help.rb +0 -102
- data/lib/capistrano/cli/help.txt +0 -53
- data/lib/capistrano/cli/options.rb +0 -183
- data/lib/capistrano/cli/ui.rb +0 -28
- data/lib/capistrano/cli.rb +0 -47
- data/lib/capistrano/command.rb +0 -161
- data/lib/capistrano/configuration/actions/file_transfer.rb +0 -35
- data/lib/capistrano/configuration/actions/inspect.rb +0 -46
- data/lib/capistrano/configuration/actions/invocation.rb +0 -134
- data/lib/capistrano/configuration/callbacks.rb +0 -148
- data/lib/capistrano/configuration/connections.rb +0 -159
- data/lib/capistrano/configuration/execution.rb +0 -126
- data/lib/capistrano/configuration/loading.rb +0 -198
- data/lib/capistrano/configuration/namespaces.rb +0 -196
- data/lib/capistrano/configuration/roles.rb +0 -51
- data/lib/capistrano/configuration/variables.rb +0 -127
- data/lib/capistrano/errors.rb +0 -15
- data/lib/capistrano/extensions.rb +0 -57
- data/lib/capistrano/gateway.rb +0 -131
- data/lib/capistrano/logger.rb +0 -59
- data/lib/capistrano/recipes/compat.rb +0 -32
- data/lib/capistrano/recipes/deploy/dependencies.rb +0 -44
- data/lib/capistrano/recipes/deploy/local_dependency.rb +0 -46
- data/lib/capistrano/recipes/deploy/remote_dependency.rb +0 -96
- data/lib/capistrano/recipes/deploy/scm/accurev.rb +0 -169
- data/lib/capistrano/recipes/deploy/scm/base.rb +0 -192
- data/lib/capistrano/recipes/deploy/scm/bzr.rb +0 -86
- data/lib/capistrano/recipes/deploy/scm/cvs.rb +0 -151
- data/lib/capistrano/recipes/deploy/scm/darcs.rb +0 -85
- data/lib/capistrano/recipes/deploy/scm/git.rb +0 -191
- data/lib/capistrano/recipes/deploy/scm/mercurial.rb +0 -129
- data/lib/capistrano/recipes/deploy/scm/perforce.rb +0 -126
- data/lib/capistrano/recipes/deploy/scm/subversion.rb +0 -114
- data/lib/capistrano/recipes/deploy/scm.rb +0 -19
- data/lib/capistrano/recipes/deploy/strategy/base.rb +0 -64
- data/lib/capistrano/recipes/deploy/strategy/checkout.rb +0 -20
- data/lib/capistrano/recipes/deploy/strategy/copy.rb +0 -144
- data/lib/capistrano/recipes/deploy/strategy/export.rb +0 -20
- data/lib/capistrano/recipes/deploy/strategy/remote.rb +0 -52
- data/lib/capistrano/recipes/deploy/strategy/remote_cache.rb +0 -47
- data/lib/capistrano/recipes/deploy/strategy.rb +0 -19
- data/lib/capistrano/recipes/deploy/templates/maintenance.rhtml +0 -53
- data/lib/capistrano/recipes/deploy.rb +0 -494
- data/lib/capistrano/recipes/standard.rb +0 -37
- data/lib/capistrano/recipes/templates/maintenance.rhtml +0 -53
- data/lib/capistrano/recipes/upgrade.rb +0 -33
- data/lib/capistrano/server_definition.rb +0 -51
- data/lib/capistrano/shell.rb +0 -256
- data/lib/capistrano/ssh.rb +0 -109
- data/lib/capistrano/task_definition.rb +0 -69
- data/lib/capistrano/upload.rb +0 -146
- data/test/cli/execute_test.rb +0 -132
- data/test/cli/help_test.rb +0 -139
- data/test/cli/options_test.rb +0 -226
- data/test/cli/ui_test.rb +0 -28
- data/test/cli_test.rb +0 -17
- data/test/command_test.rb +0 -309
- data/test/configuration/actions/file_transfer_test.rb +0 -40
- data/test/configuration/actions/inspect_test.rb +0 -62
- data/test/configuration/actions/invocation_test.rb +0 -202
- data/test/configuration/callbacks_test.rb +0 -206
- data/test/configuration/connections_test.rb +0 -288
- data/test/configuration/execution_test.rb +0 -159
- data/test/configuration/loading_test.rb +0 -127
- data/test/configuration/namespace_dsl_test.rb +0 -297
- data/test/configuration/roles_test.rb +0 -47
- data/test/configuration/servers_test.rb +0 -90
- data/test/configuration/variables_test.rb +0 -180
- data/test/configuration_test.rb +0 -81
- data/test/deploy/scm/accurev_test.rb +0 -23
- data/test/deploy/scm/base_test.rb +0 -55
- data/test/deploy/scm/git_test.rb +0 -112
- data/test/deploy/strategy/copy_test.rb +0 -147
- data/test/extensions_test.rb +0 -69
- data/test/fixtures/cli_integration.rb +0 -5
- data/test/fixtures/config.rb +0 -5
- data/test/fixtures/custom.rb +0 -3
- data/test/gateway_test.rb +0 -167
- data/test/logger_test.rb +0 -123
- data/test/server_definition_test.rb +0 -108
- data/test/shell_test.rb +0 -64
- data/test/ssh_test.rb +0 -97
- data/test/task_definition_test.rb +0 -101
- data/test/upload_test.rb +0 -131
- data/test/utils.rb +0 -42
- data/test/version_test.rb +0 -24
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6e84be755bb1beb1fa002d555a2a237a569fe0b0
|
4
|
+
data.tar.gz: 2fdcff3917f21ed061bc94fa74d09fb06e4b8bd0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9d330918070791f930fc5254574f633ec354b87ebd2b194b16392771f1d135c1d1352f412ca915e8c194b8776fa0b820e023f88829782807bb2c4d41cf37981d
|
7
|
+
data.tar.gz: bd9b0c4d70a9b420decc32592d7fd5d59e93d40e01558318e5f969dfb5add69ccb813a10a3518224940d8da6f40f1d6e30699e072ada18b97925a08aaa6426a5
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
# Capistrano 3.x Changelog
|
2
|
+
|
3
|
+
Reverse Chronological Order:
|
4
|
+
|
5
|
+
## `3.0.0`
|
6
|
+
|
7
|
+
If you are coming here to wonder why your Capfile doesn't work anymore, please
|
8
|
+
vendor lock your Capistrano at 2.5.x, whichever version was working for you
|
9
|
+
until today.
|
10
|
+
|
11
|
+
Capistrano 3 is a ground-up rewrite with modularity, stability, speed and
|
12
|
+
future proofing in mind. It's a big change, but now the code is 10x smaller,
|
13
|
+
runs faster, is easier to read, and quicker to extend. In the reduction we've
|
14
|
+
come up with a great gem based modular system for plugins and we're really
|
15
|
+
proud of this release.
|
16
|
+
|
17
|
+
The 3.0.0 release contains 38 patches from the following amazing people:
|
18
|
+
|
19
|
+
* Tom `seenmyfate` Clements: more than 28 patches including cucumber integration tests! Not to
|
20
|
+
mention Rails asset pipeline code, and bundler integrations.
|
21
|
+
* Lee Hambley: Small changes around compatibility and log formatting
|
22
|
+
* Kir Shatrov: for improvements in the core to make it easier to write extensions, for
|
23
|
+
improving documentation, and for effectively building the chruby, rvm and rbenv integrations.
|
24
|
+
* Michael Nikitochkin: Fixing a bug around linked files and directories.
|
25
|
+
* Jack Thorne: for improvements to the default `Capfile` to fix some bad example syntax.
|
26
|
+
* Erik Hetzner: for (what looks like great) work on the Mercurial (Hg) support. The Hg and Git
|
27
|
+
source control mechanisms do not work the same way, but rather lean on the strengths of the
|
28
|
+
underlying tools.
|
29
|
+
|
30
|
+
(If I missed anyone, I'm sorry, your contributions have been awesome)
|
31
|
+
|
32
|
+
The 2.x branch of code is now no longer maintained. Towards the end of it's
|
33
|
+
useful life there were an increasing number of features and pieces of code
|
34
|
+
which didn't make sense for certain groups of people, in certain situations,
|
35
|
+
leading a to a ping-pong tennis effect with pull requests every few weeks
|
36
|
+
"fixing" a use-case which had already been "fixed" shortly before. As many of
|
37
|
+
the use-cases are outside the scope of the testing environments I (and by
|
38
|
+
extension the trusted contributors and IRC regulars) were able to test for.
|
39
|
+
|
40
|
+
There's a more extensive post about my failure to be able to keep up with the
|
41
|
+
demands of maintaining v2 whilst trying to build something which is appropriate
|
42
|
+
for the current landscape. If you are affected by the unsupported 2 branch,
|
43
|
+
please contact me (Lee Hambley) to dicsuss how my company can help support you.
|
44
|
+
Otherwise, please try v3, we're sure you'll like it, and the code is designed
|
45
|
+
to be so simple that anyone can work on it.
|
46
|
+
|
47
|
+
## `3.0.0.pre14`
|
48
|
+
|
49
|
+
* Thanks to numerous contributors, in particular (@teohm) for a series of improvements.
|
50
|
+
|
51
|
+
## `3.0.0.pre13`
|
52
|
+
|
53
|
+
* Fixed typos in the Capfile. (@teohm)
|
54
|
+
* Allow setting SSH options globally. (@korin)
|
55
|
+
* Change the flow (and hooks) see http://www.capistranorb.com/documentation/getting-started/flow/ for more information. Requires min SSHKit 0.0.34 (@teohm)
|
56
|
+
* Fix sorting releases in lexicographical order (@teohm)
|
57
|
+
|
58
|
+
## `3.0.0.pre12`
|
59
|
+
|
60
|
+
* `capistrano/bundler` now runs bundle on all roles, this addresses the same
|
61
|
+
issue as the related changes in `pre11`. (@leehambley)
|
62
|
+
|
63
|
+
## `3.0.0.pre11`
|
64
|
+
|
65
|
+
* Some deploy.rake tasks now apply to all servers, not expecting a
|
66
|
+
primary(:app) server which may not exist in all deploy environments.
|
67
|
+
(@leehambley).
|
68
|
+
|
69
|
+
## `3.0.0.pre10`
|
70
|
+
|
71
|
+
* Fixes pre9.
|
72
|
+
|
73
|
+
## `3.0.0.pre9`
|
74
|
+
|
75
|
+
* Fixes a syntax error introduced with filtering (with tests) introduced in
|
76
|
+
`pre8`. (@leehambley)
|
77
|
+
|
78
|
+
## `3.0.0.pre8`
|
79
|
+
|
80
|
+
* Fixed a syntax where `roles(:foo, :bar)` was being mistaken as a filter
|
81
|
+
(roles(:foo, :bar => nil). The correct syntax to use is: roles([:foo,:bar])
|
82
|
+
(@leehambley)
|
83
|
+
|
84
|
+
## `3.0.0.pre7`
|
85
|
+
|
86
|
+
* Fix Git https authentication. (@leehambley)
|
87
|
+
* Capfile template fixes (repo/repo_url) (@teohm)
|
88
|
+
* Readme Fixes (@ffmike, @kejadlen, @dwickwire)
|
89
|
+
* Fix the positioning of the bundler hook, now immediately after finalize. (@teohm)
|
data/Gemfile
ADDED