capistrano 3.11.0 → 3.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.github/pull_request_template.md +0 -4
  3. data/.github/release-drafter.yml +17 -0
  4. data/.github/workflows/push.yml +12 -0
  5. data/.rubocop.yml +1 -0
  6. data/.travis.yml +10 -7
  7. data/CHANGELOG.md +1 -651
  8. data/Dangerfile +1 -1
  9. data/Gemfile +33 -1
  10. data/LICENSE.txt +1 -1
  11. data/README.md +2 -2
  12. data/RELEASING.md +3 -3
  13. data/Rakefile +5 -0
  14. data/capistrano.gemspec +8 -3
  15. data/features/deploy.feature +6 -0
  16. data/features/step_definitions/assertions.rb +1 -1
  17. data/features/step_definitions/setup.rb +6 -4
  18. data/features/support/vagrant_helpers.rb +6 -0
  19. data/lib/capistrano/configuration/question.rb +16 -4
  20. data/lib/capistrano/dsl.rb +1 -1
  21. data/lib/capistrano/i18n.rb +2 -0
  22. data/lib/capistrano/scm/git.rb +10 -4
  23. data/lib/capistrano/scm/tasks/git.rake +8 -7
  24. data/lib/capistrano/tasks/deploy.rake +3 -2
  25. data/lib/capistrano/templates/stage.rb.erb +1 -1
  26. data/lib/capistrano/version.rb +1 -1
  27. data/spec/integration/dsl_spec.rb +5 -3
  28. data/spec/lib/capistrano/application_spec.rb +16 -40
  29. data/spec/lib/capistrano/configuration/plugin_installer_spec.rb +1 -1
  30. data/spec/lib/capistrano/configuration/question_spec.rb +31 -13
  31. data/spec/lib/capistrano/configuration/scm_resolver_spec.rb +3 -2
  32. data/spec/lib/capistrano/doctor/environment_doctor_spec.rb +1 -1
  33. data/spec/lib/capistrano/doctor/gems_doctor_spec.rb +1 -1
  34. data/spec/lib/capistrano/doctor/servers_doctor_spec.rb +1 -1
  35. data/spec/lib/capistrano/doctor/variables_doctor_spec.rb +1 -1
  36. data/spec/lib/capistrano/dsl/task_enhancements_spec.rb +6 -6
  37. data/spec/lib/capistrano/dsl_spec.rb +5 -5
  38. data/spec/lib/capistrano/plugin_spec.rb +2 -2
  39. data/spec/lib/capistrano/scm/git_spec.rb +27 -5
  40. data/spec/spec_helper.rb +13 -0
  41. data/spec/support/test_app.rb +8 -3
  42. metadata +15 -23
data/CHANGELOG.md CHANGED
@@ -1,651 +1 @@
1
- # Capistrano 3.x Changelog
2
-
3
- All notable changes to this project will be documented in this file, in reverse chronological order.
4
-
5
- **Capistrano follows a modified version of [SemVer](http://semver.org)**, similar to the Ruby on Rails project. For a `X.Y.Z` release:
6
-
7
- * `Z` indicates bug fixes only; no breaking changes and no new features, except as necessary for security fixes.
8
- * `Y` is bumped when we add new features. Occasionally a `Y` release may include small breaking changes. We will notify via CHANGELOG entries and/or deprecation notices if there are breaking changes.
9
- * `X` is incremented for significant breaking changes. This is reserved for special occasions, like a complete rewrite.
10
-
11
- **Capistrano uses a six-week release cadence.** Every six weeks, give or take, any changes in master will be published as a new rubygems version. If you'd like to use a feature or fix that is in master and you can't wait for the next planned release, put this in your project's Gemfile to use the master branch directly:
12
-
13
- ```ruby
14
- gem "capistrano", github: "capistrano/capistrano", require: false
15
- ```
16
-
17
- ## [master]
18
-
19
- [master]: https://github.com/capistrano/capistrano/compare/v3.11.0...HEAD
20
-
21
- * Your contribution here!
22
-
23
- ## [`3.11.0`] (2018-06-02)
24
-
25
- * [#1972](https://github.com/capistrano/capistrano/pull/1972): fallback ask to default when used in non interactive session
26
-
27
- [`3.11.0`]: https://github.com/capistrano/capistrano/compare/v3.10.2...v3.11.0
28
-
29
- ## [`3.10.2`] (2018-04-15)
30
-
31
- [`3.10.2`]: https://github.com/capistrano/capistrano/compare/v3.10.1...v3.10.2
32
-
33
- ### Breaking changes:
34
-
35
- * None
36
-
37
- ### Fixes:
38
-
39
- * [#1977](https://github.com/capistrano/capistrano/pull/1977): Remove append operator when writing the git file - [@mmiller1](https://github.com/mmiller1)
40
-
41
- ## [`3.10.1`] (2017-12-08)
42
-
43
- [`3.10.1`]: https://github.com/capistrano/capistrano/compare/v3.10.0...v3.10.1
44
-
45
- ### Breaking changes:
46
-
47
- * None
48
-
49
- ### Fixes:
50
-
51
- * [#1954](https://github.com/capistrano/capistrano/pull/1954): Fix Host filtering when multi-host strings contain `0`
52
-
53
- ## [`3.10.0`] (2017-10-23)
54
-
55
- [`3.10.0`]: https://github.com/capistrano/capistrano/compare/v3.9.1...v3.10.0
56
-
57
- As of this release, version 2.x of Capistrano is officially End of Life. No further releases of 2.x series are planned, and pull requests against 2.x are no longer accepted. The maintainers encourage you to upgrade to 3.x if possible.
58
-
59
- ### Breaking changes:
60
-
61
- * None
62
-
63
- ### New features:
64
-
65
- * [#1943](https://github.com/capistrano/capistrano/issues/1943): Make 'releases' and 'shared' directory names configurable from deployment target
66
- * [#1922](https://github.com/capistrano/capistrano/pull/1922): Prevents last good release from being deleted during cleanup if there are too many subsequent failed deploys
67
- * [#1930](https://github.com/capistrano/capistrano/issues/1930): Default to locking the version using the pessimistic version operator at the patch level.
68
-
69
- ### Fixes:
70
-
71
- * [#1937](https://github.com/capistrano/capistrano/pull/1937): Clarify error message when plugin is required in the wrong config file.
72
-
73
- ## [`3.9.1`] (2017-09-08)
74
-
75
- [`3.9.1`]: https://github.com/capistrano/capistrano/compare/v3.9.0...v3.9.1
76
-
77
- ### Breaking changes:
78
-
79
- * None
80
-
81
- ### Fixes:
82
-
83
- * [#1912](https://github.com/capistrano/capistrano/pull/1912): Fixed an issue where questions posed by `ask` were not printed on certain platforms - [@kminiatures](https://github.com/kminiatures)
84
-
85
- ## [`3.9.0`] (2017-07-28)
86
-
87
- [`3.9.0`]: https://github.com/capistrano/capistrano/compare/v3.8.2...v3.9.0
88
-
89
- ### Breaking changes:
90
-
91
- * None
92
-
93
- ### New features:
94
-
95
- * [#1911](https://github.com/capistrano/capistrano/pull/1911): Add Capistrano::DSL#invoke! for repetitive tasks
96
-
97
- ### Fixes:
98
-
99
- * [#1899](https://github.com/capistrano/capistrano/pull/1899): Updated `deploy:cleanup` to continue rotating the releases and skip the invalid directory names instead of skipping the whole rotation of releases. The warning message has changed slightly due to the change of behavior.
100
-
101
- ## [`3.8.2`] (2017-06-16)
102
-
103
- [`3.8.2`]: https://github.com/capistrano/capistrano/compare/v3.8.1...v3.8.2
104
-
105
- ### Breaking changes:
106
-
107
- * None
108
-
109
- ### Other changes:
110
-
111
- * [#1882](https://github.com/capistrano/capistrano/pull/1882): Explain where to add new Capfile lines in scm deprecation warning - [@robd](https://github.com/robd)
112
-
113
- ## [`3.8.1`] (2017-04-21)
114
-
115
- [`3.8.1`]: https://github.com/capistrano/capistrano/compare/v3.8.0...v3.8.1
116
-
117
- ### Breaking changes:
118
-
119
- * None
120
-
121
- ### Fixes:
122
-
123
- * [#1867](https://github.com/capistrano/capistrano/pull/1867): Allow `cap -T` to run without Capfile present - [@mattbrictson](https://github.com/mattbrictson)
124
-
125
- ## [`3.8.0`] (2017-03-10)
126
-
127
- [`3.8.0`]: https://github.com/capistrano/capistrano/compare/v3.7.2...v3.8.0
128
-
129
- ### Minor breaking changes:
130
-
131
- * [#1846](https://github.com/capistrano/capistrano/pull/1846): add_host - When this method has already been called once for a given host and it is called a second time with a port, a new host will be added. Previously, the first host would have been updated. [(@dbenamy)](https://github.com/dbenamy)
132
-
133
- ### New features:
134
-
135
- * [#1860](https://github.com/capistrano/capistrano/pull/1860): Allow cap to be run within subdir and still work - [@mattbrictson](https://github.com/mattbrictson)
136
-
137
- ### Fixes:
138
-
139
- * [#1835](https://github.com/capistrano/capistrano/pull/1835): Stopped printing parenthesis in ask prompt if no default or nil was passed as argument [(@chamini2)](https://github.com/chamini2)
140
- * [#1840](https://github.com/capistrano/capistrano/pull/1840): Git plugin: shellescape git_wrapper_path [(@olleolleolle)](https://github.com/olleolleolle)
141
- * [#1843](https://github.com/capistrano/capistrano/pull/1843): Properly shell escape git:wrapper steps - [@mattbrictson](https://github.com/mattbrictson)
142
- * [#1846](https://github.com/capistrano/capistrano/pull/1846): Defining a role is now O(hosts) instead of O(hosts^2) [(@dbenamy)](https://github.com/dbenamy)
143
- * Run `svn switch` to work with svn branches if repo_url is changed
144
- * [#1856](https://github.com/capistrano/capistrano/pull/1856): Fix hg repo_tree implementation - [@mattbrictson](https://github.com/mattbrictson)
145
- * [#1857](https://github.com/capistrano/capistrano/pull/1857): Don't emit doctor warning when repo_tree is set - [@mattbrictson](https://github.com/mattbrictson)
146
-
147
- ### Other changes:
148
-
149
- * [capistrano-harrow#4](https://github.com/harrowio/capistrano-harrow/issues/4): Drop dependency on `capistrano-harrow` gem. Gem can still be installed separately [(@leehambley)](https://github.com/leehambley)
150
- * [#1859](https://github.com/capistrano/capistrano/pull/1859): Move git-specific repo_url logic into git plugin - [@mattbrictson](https://github.com/mattbrictson)
151
- * [#1858](https://github.com/capistrano/capistrano/pull/1858): Unset the :scm variable when an SCM plugin is used - [@mattbrictson](https://github.com/mattbrictson)
152
-
153
- ## [`3.7.2`] (2017-01-27)
154
-
155
- [`3.7.2`]: https://github.com/capistrano/capistrano/compare/v3.7.1...v3.7.2
156
-
157
- ### Potentially breaking changes:
158
-
159
- * None
160
-
161
- ### Other changes:
162
-
163
- * Suppress log messages of `git ls-remote` by filtering remote refs (@aeroastro)
164
- * The Git SCM now allows the repo_url to be changed without manually wiping out the mirror on each target host first (@javanthropus)
165
-
166
- ## [`3.7.1`] (2016-12-16)
167
-
168
- [`3.7.1`]: https://github.com/capistrano/capistrano/compare/v3.7.0...v3.7.1
169
-
170
- ### Potentially breaking changes:
171
-
172
- * None
173
-
174
- ### Fixes:
175
-
176
- * Fixed a bug with mercurial deploys failing due to an undefined variable
177
-
178
- ## [`3.7.0`] (2016-12-10)
179
-
180
- [`3.7.0`]: https://github.com/capistrano/capistrano/compare/v3.6.1...v3.7.0
181
-
182
- *Note: These release notes include all changes since 3.6.1, including the changes that were first published in 3.7.0.beta1.*
183
-
184
- ### Deprecations:
185
-
186
- * The `set :scm, ...` mechanism is now deprecated in favor of a new SCM plugin system. See the [UPGRADING-3.7](UPGRADING-3.7.md) document for details
187
-
188
- ### Potentially breaking changes:
189
-
190
- * The `:git_strategy`, `:hg_strategy`, and `:svn_strategy` settings have been removed with no replacement. If you have been using these to customize Capistrano's SCM behavior, you will need to rewrite your customization using the [new plugin system](http://capistranorb.com/documentation/advanced-features/custom-scm/)
191
- * `remote_file` feature has been removed and is no longer available to use @SaiVardhan
192
-
193
- ### New features:
194
-
195
- * The `tar` used by the Git SCM now honors the SSHKit command map, allowing an alternative tar binary to be used (e.g. gtar) #1787 (@caius)
196
- * Add support for custom on-filters [#1776](https://github.com/capistrano/capistrano/issues/1776)
197
-
198
- ### Fixes:
199
-
200
- * Fix test suite to work with Mocha 1.2.0 (@caius)
201
- * Fix bug where host_filter and role_filter were overly greedy [#1766](https://github.com/capistrano/capistrano/issues/1766) (@cseeger-epages)
202
- * Fix the removal of old releases `deploy:cleanup`. Logic is changed because of unreliable modification times on folders. Removal of directories is now decided by sorting on folder names (name is generated from current datetime format YmdHis). Cleanup is skipped, and a warning is given when a folder name is in a different format
203
-
204
- ## [`3.7.0.beta1`] (2016-11-02)
205
-
206
- [`3.7.0.beta1`]: https://github.com/capistrano/capistrano/compare/v3.6.1...v3.7.0.beta1
207
-
208
- ### Deprecations:
209
-
210
- * The `set :scm, ...` mechanism is now deprecated in favor of a new SCM plugin
211
- system. See the [UPGRADING-3.7](UPGRADING-3.7.md) document for details.
212
-
213
- ### Potentially breaking changes:
214
-
215
- * The `:git_strategy`, `:hg_strategy`, and `:svn_strategy` settings have been
216
- removed with no replacement. If you have been using these to customize
217
- Capistrano's SCM behavior, you will need to rewrite your customization using
218
- the [new plugin system](http://capistranorb.com/documentation/advanced-features/custom-scm/).
219
- * `remote_file` feature has been removed and is no longer available to use @SaiVardhan
220
-
221
- ### New features:
222
-
223
- * The `tar` used by the Git SCM now honors the SSHKit command map, allowing an alternative tar binary to be used (e.g. gtar) #1787 (@caius)
224
-
225
- ### Fixes:
226
-
227
- * Fix test suite to work with Mocha 1.2.0 (@caius)
228
- * Fix bug where host_filter and role_filter were overly greedy [#1766](https://github.com/capistrano/capistrano/issues/1766) (@cseeger-epages)
229
-
230
- ## [`3.6.1`] (2016-08-23)
231
-
232
- [`3.6.1`]: https://github.com/capistrano/capistrano/compare/v3.6.0...v3.6.1
233
-
234
- ### Fixes:
235
-
236
- * Restore compatibility with older versions of Rake (< 11.0.0) (@troelskn)
237
- * Fix `NoMethodError: undefined method gsub` when setting `:application` to a Proc. The original fix released in 3.6.0 worked for values specified with blocks, but not for those specified with procs or lambdas (the latter syntax is much more common). [#1681](https://github.com/capistrano/capistrano/issues/1681)
238
- * Fix a bug where deploy would fail if `:local_user` contained a space; spaces are now replaced with dashes when computing the git-ssh suffix. (@will_in_wi)
239
-
240
- ## [`3.6.0`] (2016-07-26)
241
-
242
- [`3.6.0`]: https://github.com/capistrano/capistrano/compare/v3.5.0...v3.6.0
243
-
244
- Thank you to the many first-time contributors from the Capistrano community who
245
- helped with this release!
246
-
247
- ### Deprecations:
248
-
249
- * Deprecate `remote_file` feature (will be removed in Capistrano 3.7.0) (@lebedev-yury)
250
- * Deprecate `:git_strategy`, `:hg_strategy`, and `:svn_strategy` variables.
251
- These will be completely removed in 3.7.0.
252
- * Added warning about future deprecation of reinvocation behaviour (@troelskn)
253
-
254
- Refer to the [Capistrano 3.7.0 upgrade document](UPGRADING-3.7.md) if you are
255
- affected by these deprecations.
256
-
257
- ### New features:
258
-
259
- * Added a `doctor:servers` subtask that outputs a summary of servers, roles & properties (@irvingwashington)
260
- * Make path to git wrapper script configurable (@thickpaddy)
261
- * Make name of current directory configurable via configuration variable `:current_directory` (@websi)
262
- * It is now possible to rollback to a specific release using the
263
- `ROLLBACK_RELEASE` environment variable.
264
- [#1155](https://github.com/capistrano/capistrano/issues/1155) (@lanrion)
265
-
266
- ### Fixes:
267
-
268
- * `doctor` no longer erroneously warns that `:git_strategy` and other SCM options are "unrecognized" (@shanesaww)
269
- * Fix `NoMethodError: undefined method gsub` when setting `:application` to a
270
- Proc. [#1681](https://github.com/capistrano/capistrano/issues/1681)
271
- (@mattbrictson)
272
-
273
- ### Other changes:
274
-
275
- * Raise a better error when an ‘after’ hook isn’t found (@jdelStrother)
276
- * Change git wrapper path to work better with multiple users (@thickpaddy)
277
- * Restrict the uploaded git wrapper script permissions to 700 (@irvingwashington)
278
- * Add `net-ssh` gem version to `doctor:gems` output (@lebedev-yury)
279
-
280
- ## [`3.5.0`]
281
-
282
- [`3.5.0`]: https://github.com/capistrano/capistrano/compare/v3.4.1...v3.5.0
283
-
284
- **You'll notice a big cosmetic change in this release: the default logging
285
- format has been changed to
286
- [Airbrussh](https://github.com/mattbrictson/airbrussh).** For more details on
287
- what Airbrussh does
288
- and how to configure it, visit the
289
- [Airbrussh README](https://github.com/mattbrictson/airbrussh#readme).
290
-
291
- * To opt out of the new format, simply add `set :format, :pretty` to switch to
292
- the old default of Capistrano 3.4.0 and earlier.
293
- * If you are already an Airbrussh user, note that the default configuration has
294
- changed, and the syntax for configuring Airbrussh has changed as well.
295
- [This simple upgrade guide](https://github.com/mattbrictson/airbrussh/blob/master/UPGRADING-CAP-3.5.md)
296
- will walk you through it.
297
-
298
- ### Potentially breaking changes:
299
-
300
- * Drop support for Ruby 1.9.3 (Capistrano does no longer work with 1.9.3)
301
- * Git version 1.6.3 or greater is now required
302
- * Remove 'vendor/bundle' from default :linked_dirs (@ojab)
303
- * Old versions of SSHKit (before 1.9.0) are no longer supported
304
- * SHA1 hash of current git revision written to REVISION file is no longer abbreviated
305
- * Ensure task invocation within after hooks is namespace aware, which may require
306
- you to change how your `after` hooks are declared in some cases; see
307
- [#1652](https://github.com/capistrano/capistrano/issues/1652) for an example
308
- and how to correct it (@thickpaddy)
309
- * Validation of the `:application` variable forbids special characters such as slash,
310
- this may be a breaking change in case that you rely on using a `/` in your application
311
- name to deploy from a sub directory.
312
-
313
- ### New features:
314
-
315
- * Added a `doctor` task that outputs helpful troubleshooting information. Try it like this: `cap production doctor`. (@mattbrictson)
316
- * Added a `dry_run?` helper method
317
- * `remove` DSL method for removing values like from arrays like `linked_dirs`
318
- * `append` DSL method for pushing values like `linked_dirs`
319
- [#1447](https://github.com/capistrano/capistrano/pull/1447),
320
- [#1586](https://github.com/capistrano/capistrano/pull/1586)
321
- * Added support for git shallow clone
322
- * Added new runtime option `--print-config-variables` that inspect all defined config variables in order to assist development of new capistrano tasks (@gerardo-navarro)
323
- * Prune dead tracking branches from git repositories while updating
324
- * Added options to set username and password when using Subversion as SCM (@dsthode)
325
- * Allow after() to refer to tasks that have not been loaded yet (@jcoglan)
326
- * Allow use "all" as string for server filtering (@theist)
327
- * Print a warning and abort if "load:defaults" is erroneously invoked after
328
- capistrano is already loaded, e.g. when a plugin is loaded in `deploy.rb`
329
- instead of `Capfile`. (@mattbrictson)
330
- * Added option to set specific revision when using Subversion as SCM (@marcovtwout)
331
- * Deduplicate list of linked directories
332
- * Integration with Harrow.io (See http://capistranorb.com/documentation/harrow/) when running `cap install`
333
- * Added validate method to DSL to allow validation of certain values (@Kriechi)
334
- * validate values before assignment inside of `set(:key, value)`
335
- * should raise a `Capistrano::ValidationError` if invalid
336
- * Added default validation for Capistrano-specific variables (@Kriechi)
337
-
338
- ### Fixes:
339
-
340
- * Capistrano is now fully-compatible with Rake 11.0. (@mattbrictson)
341
- * Fix filtering behaviour when using literal hostnames in on() block (@townsen)
342
- * Allow dot in :application name (@marcovtwout)
343
- * Fixed git-ssh permission error (@spight)
344
-
345
- ### Other changes:
346
-
347
- * Internal Rubocop cleanups.
348
- * Removed the post-install message (@Kriechi)
349
- * Refactor `Configuration::Filter` to use filtering strategies instead
350
- of case statements (@cshaffer)
351
- * Clean up rubocop lint warnings (@cshaffer)
352
-
353
- ## [`3.4.0`]
354
-
355
- [`3.4.0`]: https://github.com/capistrano/capistrano/compare/v3.3.5...v3.4.0
356
-
357
- * Fixed fetch revision for annotated git tags. (@igorsokolov)
358
- * Fixed updating roles when custom user or port is specified. (@ayastreb)
359
- * Disables statistics collection.
360
-
361
- * `bin/` is not suggested to be in `linked_dirs` anymore (@kirs)
362
- * bin/ is often checked out into repo
363
- * https://github.com/capistrano/bundler/issues/45#issuecomment-69349237
364
-
365
- * Bugfix:
366
- * release_roles did not honour additional property filtering (@townsen)
367
- * Refactored and simplified property filtering code (@townsen)
368
-
369
- * Breaking Changes
370
- * Hosts with the same name are now consolidated into one irrespective of the
371
- user and port. This allows multiple declarations of a server to be made safely.
372
- The last declared properties will win. See capistranorb.com Properties documentation
373
- for details.
374
- * Inside the on() block the host variable is now a copy of the host, so changes can be
375
- made within the block (such as dynamically overriding the user) that will not persist.
376
- This is very convenient for switching the SSH user temporarily to 'root' for example.
377
-
378
- * Minor changes
379
- * Add role_properties() method (see capistrano.github.io PR for doc) (@townsen)
380
- * Add equality syntax ( eg. port: 1234) for property filtering (@townsen)
381
- * Add documentation regarding property filtering (@townsen)
382
- * Clarify wording and recommendation in stage template. (@Kriechi)
383
- * Both available syntaxes provide similar functionality, do not use both for the same server+role combination.
384
- * Allow specification of repo_path using stage variable
385
- default is as before (@townsen)
386
-
387
- ## [`3.3.5`]
388
-
389
- [`3.3.5`]: https://github.com/capistrano/capistrano/compare/v3.3.4...v3.3.5
390
-
391
- * Fixed setting properties twice when creating new server. See [issue
392
- #1214](https://github.com/capistrano/capistrano/issues/1214) (@ayastreb)
393
-
394
- ## [`3.3.4`]
395
-
396
- [`3.3.4`]: https://github.com/capistrano/capistrano/compare/v3.3.3...v3.3.4
397
-
398
- * Minor changes:
399
- * Rely on a newer version of capistrano-stats with better privacy (@leehambley)
400
- * Fix cucumber spec for loading tasks from stage configs (@sponomarev)
401
- * Minor documentation fixes (@deeeki, @seuros, @andresilveira)
402
- * Spec improvements (@dimitrid, @sponomarev)
403
- * Fix to CLI flags for git-ls-remote (@dimitrid)
404
-
405
- ## [`3.3.3`]
406
-
407
- [`3.3.3`]: https://github.com/capistrano/capistrano/compare/v3.2.1...v3.3.3
408
-
409
- * Enhancement (@townsen)
410
- * Added the variable `:repo_tree` which allows the specification of a sub-tree that
411
- will be extracted from the repository. This is useful when deploying a project
412
- that lives in a subdirectory of a larger repository.
413
- Implemented only for git and hg.
414
- If not defined then the behaviour is as previously and the whole repository is
415
- extracted (subject to git-archive `.gitattributes` of course).
416
-
417
- * Enhancement (@townsen): Remove unnecessary entries from default backtrace
418
-
419
- When the `--backtrace` (or `--trace`) command line option is not supplied
420
- Rake lowers the noise level in exception backtraces by building
421
- a regular expression containing all the system library paths and
422
- using it to exclude backtrace entries that match.
423
-
424
- This does not always go far enough, particularly in RVM environments when
425
- many gem paths are added. This commit reverses that approach and _only_
426
- include backtrace entries that fall within the Capfile and list of tasks
427
- imported thereafter. This makes reading exceptions much easier on the eye.
428
-
429
- If the full unexpurgated backtrace is required then the --backtrace
430
- and --trace options supply it as before.
431
-
432
- * Disable loading stages configs on `cap -T` (@sponomarev)
433
-
434
- * Enhancements (@townsen)
435
- * Fix matching on hosts with custom ports or users set
436
- * Previously filtering would affect any generated configuration files so that
437
- files newly deployed would not be the same as those on the hosts previously
438
- deployed (and now excluded by filters). This is almost certainly not what is
439
- wanted: the filters should apply only to the on() method and thus any
440
- configuration files deployed will be identical across the set of servers
441
- making up the stage.
442
- * Host and Role filtering now affects only `on()` commands
443
- and not the `roles()`, `release_roles()` and `primary()` methods.
444
- * This applies to filters defined via the command line, the environment
445
- and the :filter variable.
446
- * Filtering now supports Regular expressions
447
- * This change _could_ cause existing scripts that use filtering and depend on
448
- the old behaviour to fail, though it is unlikely. Users who rely on
449
- filtering should check that generated configuration files are correct, and
450
- where not introduce server properties to do the filtering. For example, if a
451
- filter was used to specify an active subset of servers (by hostname), it should
452
- be removed and replaced with an 'active' property (set to true or false) on the
453
- server definitions. This keeps the stage file as the canonical model of the
454
- deployment environment.
455
-
456
- * See the documentation in the README.md file
457
-
458
- * Enhancements (@townsen)
459
- * Added set_if_empty method to DSL to allow conditional setting
460
- * Altered standard Capistrano defaults so that they are not set
461
- at the start of a stage if they have been previously set. This
462
- allows variables like :default_env to be set in deploy.rb.
463
- * Deep copy properties added using the 'roles' keyword
464
- * If a property exists on a server when another definition is
465
- encountered and is an Array, Set or Hash then add the new values
466
-
467
- This allows roles to specify properties common to all servers and
468
- then for individual servers to modify them, keeping things DRY
469
-
470
- Breaking Changes:
471
- * By using Ruby's noecho method introduced in Ruby version 1.9.3, we dropped support for Ruby versions prior to 1.9.3. See [issue #878](https://github.com/capistrano/capistrano/issues/878) and [PR #1112](https://github.com/capistrano/capistrano/pull/1112) for more information. (@kaikuchn)
472
- * Track (anonymous) statistics, see https://github.com/capistrano/stats. This breaks automated deployment on continuous integration servers until the `.capistrano/metrics` file is created (with content `full` to simulate a "yes") via the interactive prompt or manually.
473
-
474
- * Bug Fixes:
475
- * Fixed compatibility with FreeBSD tar (@robbertkl)
476
- * remote_file can be used inside a namespace (@mikz)
477
-
478
- * Minor Changes
479
- * Remove -v flag from mkdir call. (@caligo-mentis)
480
- * Capistrano now allows to customize `local_user` for revision log. (@sauliusgrigaitis)
481
- * Added tests for after/before hooks features (@juanibiapina, @miry)
482
- * Added `--force` flag to `svn export` command to fix errors when the release directory already exists.
483
- * Improved the output of `cap --help`. (@mbrictson)
484
- * Cucumber suite now runs on the latest version of Vagrant (@tpett)
485
- * The `ask` method now supports the `echo: false` option. (@mbrictson, @kaikuchn)
486
- * Cucumber scenario improvements (@bruno-)
487
- * Added suggestion to Capfile to use 'capistrano-passenger' gem, replacing suggestion in config/deploy.rb to re-implement 'deploy:restart' (@betesh)
488
- * Updated svn fetch_revision method to use `svnversion`
489
- * `cap install` no longer overwrites existing files. (@dmarkow)
490
-
491
- ## [`3.2.1`]
492
-
493
- [`3.2.1`]: https://github.com/capistrano/capistrano/compare/v3.2.0...v3.2.1
494
-
495
- * Bug Fixes:
496
- * 3.2.0 introduced some behaviour to modify the way before/after hooks were called, to allow the optional
497
- preservation of arguments to be passed to tasks. This release reverts that commit in order to restore
498
- original functionality, and fix (fairly serious) bugs introduced by the refactoring.
499
-
500
- * Minor changes:
501
- * Update dsl#local_user method and add test for it. (@bruno-)
502
- * Revert short sha1 revision with git. (@blaugueux)
503
- * Changed asking question to more standard format (like common unix commandline tools) (@sponomarev)
504
- * Fixed typos in the README. (@sponomarev)
505
- * Added `keys` method to Configuration to allow introspection of configuration options. (@juanibiapina)
506
- * Improve error message when git:check fails (raise instead of silently `exit 1`) (@mbrictson)
507
-
508
- ## [`3.2.0`]
509
-
510
- The changelog entries here are incomplete, because many authors choose not to
511
- be credited for their work, check the tag comparison link for Github.
512
-
513
- [`3.2.0`]: https://github.com/capistrano/capistrano/compare/v3.1.0...v3.2.0
514
-
515
- * Minor changes:
516
- * Added `keys` method to Server properties to allow introspection of automatically added
517
- properties.
518
- * Compatibility with Rake 10.2.0 - `ensure_task` is now added to `@top_level_tasks` as a string. (@dmarkow)
519
- * Amended the git check command, "ls-remote", to use "-h", limiting the list to refs/heads
520
-
521
- ## [`3.1.0`]
522
-
523
- [`3.1.0`]: https://github.com/capistrano/capistrano/compare/v3.0.1...v3.1.0
524
-
525
- Breaking changes:
526
-
527
- * `deploy:restart` task **is no longer run by default**.
528
- From this version, developers who restart the app on each deploy need to declare it in their deploy flow (eg `after 'deploy:publishing', 'deploy:restart'`)
529
- or, for passenger applications, use the capistrano-passenger gem.
530
-
531
- Please, check https://github.com/capistrano/capistrano/commit/4e6523e1f50707499cf75eb53dce37a89528a9b0 for more information. (@kirs)
532
-
533
- * Minor changes
534
- * Tasks that used `linked_dirs` and `linked_files` now run on all roles, not just app roles (@mikespokefire)
535
- * Tasks `deploy:linked_dirs`, `deploy:make_linked_dirs`, `deploy:linked_files`, `deploy:cleanup_rollback`,
536
- `deploy:log_revision` and `deploy:revert_release` now use `release_roles()` not `roles()` meaning that they
537
- will only run on servers where the `no_release` property is not falsy. (@leehambley)
538
- * Fixed bug when `deploy:cleanup` was executed twice by default (@kirs)
539
- * Config location can now be changed with `deploy_config_path` and `stage_config_path` options (@seenmyfate)
540
- * `no_release` option is now available (@seenmyfate)
541
- * Raise an error if developer tries to define `:all` role, which is reserved (@kirs)
542
- * `deploy:failed` hook was added to add some custom behaviour on failed deploy (@seenmyfate)
543
- * Correctly infer namespace in task enhancements (@seenmyfate)
544
- * Add SHA to revision log (@blackxored)
545
- * Allow configuration of multiple servers with same hostname but different ports (@rsslldnphy)
546
- * Add command line option to control role filtering (@andytinycat)
547
- * Make use of recent changes in Rake to over-ride the application name (@shime)
548
- * Readme corrections (@nathanstitt)
549
- * Allow roles to be fetched with a variable containing an array (@seenmyfate)
550
- * Improve console (@jage)
551
- * Add ability to filter tasks to specific servers (host filtering). (@andytinycat)
552
- * Add a command line option to control role filter (`--roles`) (@andytinycat)
553
- * Use an SCM object with a pluggable strategy (@coffeeaddict)
554
-
555
- Big thanks to @Kriechi for his help.
556
-
557
- ## [`3.0.1`]
558
-
559
- [`3.0.1`]: https://github.com/capistrano/capistrano/compare/v3.0.0...v3.0.1
560
-
561
- * `capify` not listed as executable (@leehambley)
562
- * Confirm license as MIT (@leehambley)
563
- * Move the git ssh helper to application path (@mpapis)
564
-
565
- ## [`3.0.0`]
566
-
567
- [`3.0.0`]: https://github.com/capistrano/capistrano/compare/2.15.5...v3.0.0
568
-
569
- If you are coming here to wonder why your Capfile doesn't work anymore, please
570
- vendor lock your Capistrano at 2.x, whichever version was working for you
571
- until today.
572
-
573
- Capistrano 3 is a ground-up rewrite with modularity, stability, speed and
574
- future proofing in mind. It's a big change, but now the code is 10x smaller,
575
- runs faster, is easier to read, and quicker to extend. In the reduction we've
576
- come up with a great gem based modular system for plugins and we're really
577
- proud of this release.
578
-
579
- The 3.0.0 release contains 38 patches from the following amazing people:
580
-
581
- * Tom `seenmyfate` Clements: more than 28 patches including cucumber integration tests! Not to
582
- mention Rails asset pipeline code, and bundler integrations.
583
- * Lee Hambley: Small changes around compatibility and log formatting
584
- * Kir Shatrov: for improvements in the core to make it easier to write extensions, for
585
- improving documentation, and for effectively building the chruby, rvm and rbenv integrations.
586
- * Michael Nikitochkin: Fixing a bug around linked files and directories.
587
- * Jack Thorne: for improvements to the default `Capfile` to fix some bad example syntax.
588
- * Erik Hetzner: for (what looks like great) work on the Mercurial (Hg) support. The Hg and Git
589
- source control mechanisms do not work the same way, but rather lean on the strengths of the
590
- underlying tools.
591
-
592
- (If I missed anyone, I'm sorry, your contributions have been awesome)
593
-
594
- The 2.x branch of code is now no longer maintained. Towards the end of it's
595
- useful life there were an increasing number of features and pieces of code
596
- which didn't make sense for certain groups of people, in certain situations,
597
- leading a to a ping-pong tennis effect with pull requests every few weeks
598
- "fixing" a use-case which had already been "fixed" shortly before. As many of
599
- the use-cases are outside the scope of the testing environments I (and by
600
- extension the trusted contributors and IRC regulars) were able to test for.
601
-
602
- There's a more extensive post about my failure to be able to keep up with the
603
- demands of maintaining v2 whilst trying to build something which is appropriate
604
- for the current landscape. If you are affected by the unsupported 2 branch,
605
- please contact me (Lee Hambley) to discuss how my company can help support you.
606
- Otherwise, please try v3, we're sure you'll like it, and the code is designed
607
- to be so simple that anyone can work on it.
608
-
609
- ## `3.0.0.pre14`
610
-
611
- * Thanks to numerous contributors, in particular (@teohm) for a series of improvements.
612
-
613
- ## `3.0.0.pre13`
614
-
615
- * Fixed typos in the Capfile. (@teohm)
616
- * Allow setting SSH options globally. (@korin)
617
- * Change the flow (and hooks) see http://www.capistranorb.com/documentation/getting-started/flow/ for more information. Requires min SSHKit 0.0.34 (@teohm)
618
- * Fix sorting releases in lexicographical order (@teohm)
619
-
620
- ## `3.0.0.pre12`
621
-
622
- * `capistrano/bundler` now runs bundle on all roles, this addresses the same
623
- issue as the related changes in `pre11`. (@leehambley)
624
-
625
- ## `3.0.0.pre11`
626
-
627
- * Some deploy.rake tasks now apply to all servers, not expecting a
628
- primary(:app) server which may not exist in all deploy environments.
629
- (@leehambley).
630
-
631
- ## `3.0.0.pre10`
632
-
633
- * Fixes pre9.
634
-
635
- ## `3.0.0.pre9`
636
-
637
- * Fixes a syntax error introduced with filtering (with tests) introduced in
638
- `pre8`. (@leehambley)
639
-
640
- ## `3.0.0.pre8`
641
-
642
- * Fixed a syntax where `roles(:foo, :bar)` was being mistaken as a filter
643
- (roles(:foo, :bar => nil). The correct syntax to use is: roles([:foo,:bar])
644
- (@leehambley)
645
-
646
- ## `3.0.0.pre7`
647
-
648
- * Fix Git https authentication. (@leehambley)
649
- * Capfile template fixes (repo/repo_url) (@teohm)
650
- * Readme Fixes (@ffmike, @kejadlen, @dwickwire)
651
- * Fix the positioning of the bundler hook, now immediately after finalize. (@teohm)
1
+ Release notes for this project are kept here: https://github.com/capistrano/capistrano/releases
data/Dangerfile CHANGED
@@ -1 +1 @@
1
- danger.import_dangerfile(github: "capistrano/danger")
1
+ danger.import_dangerfile(github: "capistrano/danger", branch: "no-changelog")