1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
capistrano/spec/support
Matt Brictson d6a3b3efa6 Make Airbrussh the default format; add format opts
To accommodate Airbrussh, this commit makes the following changes:

1. Adds the airbrussh gem as a dependency
2. Bumps the sshkit dependency to 1.8.0 (for the new `use_format` method)
3. Introduces a `:format_options` setting

Out of the box, Capistrano now defaults to the following:

set :format, :airbussh

It also requires the airbrussh gem at the appropriate point in the Capistrano
boot process, which allows Airbrussh to register its `deploy:failed` hook.

We also change the default Airbrussh settings slightly, to acknowledge the fact
that Airbrussh will now be the first impression new Capistrano users have of the
tool.

Specifically:

* Enable command output (hiding the command output is tidy but probably will
  confuse new users who will not know what their deploy script is doing)
* Disable the "using airbrussh format" banner at startup

Finally, this commit adds an official mechanism for sending a hash of options to
the formatter initializer. This lets users easily change Airbrussh's settings.

set :format_options, color: false, truncate: false, ...

If `:format_options` are set, Capistrano will send them to the formatter object
using SSHKit's `use_format` factory method. As of the latest SSHKit, all
formatters inheriting from `Formatter::Abstract` now accept an options hash
(although currently only Airbrussh does anything with them).
2016-02-24 09:03:54 -08:00
..
tasks Add a Plugin API 2016-01-17 16:46:53 -08:00
.gitignore Integration tests with Vagrant and Cucumber 2013-09-27 11:45:55 +01:00
matchers.rb Add integration tests for deploy task 2013-06-16 13:08:15 +01:00
test_app.rb Make Airbrussh the default format; add format opts 2016-02-24 09:03:54 -08:00
Vagrantfile Address all rubocop lint warnings 2015-08-14 14:21:34 -07:00