diff --git a/Gemfile b/Gemfile index af6f9c8e..b2c3441a 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,5 @@ source "https://rubygems.org" -gem "debugger" gem "jekyll", "~> 1.1.2" gem "redcarpet" gem "unindent" diff --git a/Gemfile.lock b/Gemfile.lock index 6e75de3b..d341d520 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -4,15 +4,8 @@ GEM classifier (1.3.3) fast-stemmer (>= 1.0.0) colorator (0.1) - columnize (0.3.6) commander (4.1.3) highline (~> 1.6.11) - debugger (1.6.1) - columnize (>= 0.3.1) - debugger-linecache (~> 1.2.0) - debugger-ruby_core_source (~> 1.2.3) - debugger-linecache (1.2.0) - debugger-ruby_core_source (1.2.3) directory_watcher (1.4.1) fast-stemmer (1.0.2) git (1.2.5) @@ -56,7 +49,6 @@ PLATFORMS ruby DEPENDENCIES - debugger git jekyll (~> 1.1.2) redcarpet diff --git a/_includes/navigation.html b/_includes/navigation.html index ff3641e5..3e8c587a 100644 --- a/_includes/navigation.html +++ b/_includes/navigation.html @@ -9,12 +9,13 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • Host filtering
  • diff --git a/_site/2013/06/01/release-announcement.html b/_site/2013/06/01/release-announcement.html index 84937efe..2835ae3e 100644 --- a/_site/2013/06/01/release-announcement.html +++ b/_site/2013/06/01/release-announcement.html @@ -70,14 +70,16 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • +
  • Host filtering
  • Using Capistrano from pure Ruby
  • Framework Extensions
    @@ -1294,8 +1296,8 @@ piecemeal with their own implementations

    diff --git a/_site/Gemfile b/_site/Gemfile index af6f9c8e..f9a6157e 100644 --- a/_site/Gemfile +++ b/_site/Gemfile @@ -1,6 +1,6 @@ source "https://rubygems.org" -gem "debugger" +#gem "debugger" gem "jekyll", "~> 1.1.2" gem "redcarpet" gem "unindent" diff --git a/_site/Gemfile.lock b/_site/Gemfile.lock index 6e75de3b..d341d520 100644 --- a/_site/Gemfile.lock +++ b/_site/Gemfile.lock @@ -4,15 +4,8 @@ GEM classifier (1.3.3) fast-stemmer (>= 1.0.0) colorator (0.1) - columnize (0.3.6) commander (4.1.3) highline (~> 1.6.11) - debugger (1.6.1) - columnize (>= 0.3.1) - debugger-linecache (~> 1.2.0) - debugger-ruby_core_source (~> 1.2.3) - debugger-linecache (1.2.0) - debugger-ruby_core_source (1.2.3) directory_watcher (1.4.1) fast-stemmer (1.0.2) git (1.2.5) @@ -56,7 +49,6 @@ PLATFORMS ruby DEPENDENCIES - debugger git jekyll (~> 1.1.2) redcarpet diff --git a/_site/changes.html b/_site/changes.html index 51f7be2f..a3f314eb 100644 --- a/_site/changes.html +++ b/_site/changes.html @@ -70,14 +70,16 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • +
  • Host filtering
  • Using Capistrano from pure Ruby
  • Framework Extensions
    @@ -134,8 +136,8 @@
    diff --git a/_site/documentation/advanced-features/capistrano-pure-ruby/index.html b/_site/documentation/advanced-features/capistrano-pure-ruby/index.html index 64a953dd..f7879def 100644 --- a/_site/documentation/advanced-features/capistrano-pure-ruby/index.html +++ b/_site/documentation/advanced-features/capistrano-pure-ruby/index.html @@ -70,14 +70,16 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • +
  • Host filtering
  • Using Capistrano from pure Ruby
  • Framework Extensions
    @@ -174,8 +176,8 @@ Capistrano::Application.invoke("deploy")
    diff --git a/_site/documentation/advanced-features/host-filtering/index.html b/_site/documentation/advanced-features/host-filtering/index.html new file mode 100644 index 00000000..b280a394 --- /dev/null +++ b/_site/documentation/advanced-features/host-filtering/index.html @@ -0,0 +1,293 @@ + + + + + + + Host filtering + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    + + +
    + +
    +
    +

    Host filtering

    +

    You may encounter situations where you only want to deploy to a subset of +the servers defined in your configuration. For example, a single server or +set of servers may be misbehaving, and you want to re-deploy to just these +servers without deploying to every server.

    + +

    You can use the host filter to restrict Capistrano tasks to only servers +that match a given set of hostnames.

    + +

    If the filter matches no servers, no actions will be taken.

    + +

    If you specify a filter, it will match servers that have the listed hostnames, +and it will run all the roles for each server. In other words, it only affects +the servers the task runs on, not what tasks are run on a server.

    + +

    You can limit by role and by host; if you do this, the role filtering will +apply first. For example, lets say you filtered by the role app, then by +the hostnames server1 and server2. Capistrano would first filter the +available servers to only those with the role app, then filter them +to look for servers with the hostname server1 or server2. If only server2 +had the role app (server1 has some other role), then in this situation your +task would only run on server2.

    + +

    Specifying a host filter

    + +

    There are three ways to specify the host filter.

    + +

    Environment variable

    + +

    Capistrano will read the host filter from the environment variable HOSTS +if it is set. You can set it inline:

    + +
    +
    HOSTS=server1,server2 cap production deploy
    +
    + +

    Specify multiple hosts by separating them with a comma.

    + +

    In configuration

    + +

    You can set the host filter inside your deploy configuration. For example, +you can set the following inside config/deploy.rb:

    + +
    +
    set :filter, :hosts => %w{server1 server2}
    +
    + +

    Note that you specify the filter as an array rather than as a comma-separated +list of servers when using this method.

    + +

    On the command line

    + +

    In a similar way to using the environment variable, you can set the role +filter by specifying it as a command line argument to cap:

    + +
    +
    cap --hosts=server1,server2 production deploy
    +
    + +

    Like the environment variable method, specify multiple servers by separating +them with a comma.

    + +
    +
    +
    + + + + + + + + + + + + + + + + + + + Fork me on GitHub + + diff --git a/_site/documentation/advanced-features/remote-file/index.html b/_site/documentation/advanced-features/remote-file/index.html index 15c281af..afa2f7a9 100644 --- a/_site/documentation/advanced-features/remote-file/index.html +++ b/_site/documentation/advanced-features/remote-file/index.html @@ -70,14 +70,16 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • +
  • Host filtering
  • Using Capistrano from pure Ruby
  • Framework Extensions
    @@ -170,8 +172,8 @@ end
    diff --git a/_site/documentation/advanced-features/role-filtering/index.html b/_site/documentation/advanced-features/role-filtering/index.html index de6dd508..baa62906 100644 --- a/_site/documentation/advanced-features/role-filtering/index.html +++ b/_site/documentation/advanced-features/role-filtering/index.html @@ -70,14 +70,16 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • +
  • Host filtering
  • Using Capistrano from pure Ruby
  • Framework Extensions
    @@ -240,8 +242,8 @@ with a comma.

    diff --git a/_site/documentation/advanced-features/ssh-kit/index.html b/_site/documentation/advanced-features/ssh-kit/index.html new file mode 100644 index 00000000..540a81f0 --- /dev/null +++ b/_site/documentation/advanced-features/ssh-kit/index.html @@ -0,0 +1,223 @@ + + + + + + + Remote commands with SSH Kit + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    + + +
    + +
    +
    +

    Remote commands with SSH Kit

    +

    Capistrano executes commands on remote servers using SSHKit.

    + +

    An example setting a working directory, user and environment variable:

    + +
    +
    on roles(:app), in: :sequence, wait: 5 do
    +  within "/opt/sites/example.com" do
    +    # commands in this block execute in the 
    +    # directory: /opt/sites/example.com
    +    as :deploy  do
    +      # commands in this block execute as the "deploy" user.
    +      with rails_env: :production do
    +        # commands in this block execute with the environment
    +        # variable RAILS_ENV=production
    +        rake   "assets:precompile"
    +        runner "S3::Sync.notify"
    +      end
    +    end
    +  end
    +end
    +
    + +

    For more examples, see the EXAMPLES.md file in the SSHKit project:

    + +

    https://github.com/capistrano/sshkit/blob/master/EXAMPLES.md

    + +
    +
    +
    + + + + + + + + + + + + + + + + + + + Fork me on GitHub + + diff --git a/_site/documentation/faq/why-does-something-work-in-my-ssh-session-but-not-in-capistrano/index.html b/_site/documentation/faq/why-does-something-work-in-my-ssh-session-but-not-in-capistrano/index.html index 02a98bb2..a428e35b 100644 --- a/_site/documentation/faq/why-does-something-work-in-my-ssh-session-but-not-in-capistrano/index.html +++ b/_site/documentation/faq/why-does-something-work-in-my-ssh-session-but-not-in-capistrano/index.html @@ -70,14 +70,16 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • +
  • Host filtering
  • Using Capistrano from pure Ruby
  • Framework Extensions
    @@ -370,8 +372,8 @@ INFO Not interactive
    diff --git a/_site/documentation/frameworks/bundler/index.html b/_site/documentation/frameworks/bundler/index.html index 31196a69..8225b5c4 100644 --- a/_site/documentation/frameworks/bundler/index.html +++ b/_site/documentation/frameworks/bundler/index.html @@ -70,14 +70,16 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • +
  • Host filtering
  • Using Capistrano from pure Ruby
  • Framework Extensions
    @@ -142,8 +144,8 @@ You don't need anything except require 'capistrano/bundler' diff --git a/_site/documentation/frameworks/rbenv-rvm-chruby/index.html b/_site/documentation/frameworks/rbenv-rvm-chruby/index.html index c835caf7..2b5d9741 100644 --- a/_site/documentation/frameworks/rbenv-rvm-chruby/index.html +++ b/_site/documentation/frameworks/rbenv-rvm-chruby/index.html @@ -70,14 +70,16 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • +
  • Host filtering
  • Using Capistrano from pure Ruby
  • Framework Extensions
    @@ -160,8 +162,8 @@
    diff --git a/_site/documentation/frameworks/ruby-on-rails/index.html b/_site/documentation/frameworks/ruby-on-rails/index.html index 866544ef..8c4daec7 100644 --- a/_site/documentation/frameworks/ruby-on-rails/index.html +++ b/_site/documentation/frameworks/ruby-on-rails/index.html @@ -70,14 +70,16 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • +
  • Host filtering
  • Using Capistrano from pure Ruby
  • Framework Extensions
    @@ -168,8 +170,8 @@ appropriate times.

    diff --git a/_site/documentation/getting-started/authentication-and-authorisation/index.html b/_site/documentation/getting-started/authentication-and-authorisation/index.html index 46ab5d80..d007a4d7 100644 --- a/_site/documentation/getting-started/authentication-and-authorisation/index.html +++ b/_site/documentation/getting-started/authentication-and-authorisation/index.html @@ -70,14 +70,16 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • +
  • Host filtering
  • Using Capistrano from pure Ruby
  • Framework Extensions
    @@ -878,8 +880,8 @@ drwxrwsr-x (2775) /var/www/rails3-bootstrap-devise-cancan-demo/shared

    diff --git a/_site/documentation/getting-started/cold-start/index.html b/_site/documentation/getting-started/cold-start/index.html index 7df7ed11..bb5ed245 100644 --- a/_site/documentation/getting-started/cold-start/index.html +++ b/_site/documentation/getting-started/cold-start/index.html @@ -70,14 +70,16 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • +
  • Host filtering
  • Using Capistrano from pure Ruby
  • Framework Extensions
    @@ -178,7 +180,7 @@ writing your own tasks, namely desc(), task(), o

    The first two methods, desc() and task() are actually from Rake, the library that forms the foundation of the Capistrano task system, the other methods are part of our sub-project -SSHKit. We'll dive into those more +SSHKit. We'll dive into those more later, but add those lines to a file in ./lib/capistrano/tasks, call it something like access_check.cap, and run cap -T from the top directory and we'll be able to see the task listed:

    @@ -398,7 +400,7 @@ writing your own tasks, namely desc(), task(), o

    The first two methods, desc() and task() are actually from Rake, the library that forms the foundation of the Capistrano task system, the other methods are part of our sub-project -SSHKit. We'll dive into those more +SSHKit. We'll dive into those more later, but add those lines to a file in ./lib/capistrano/tasks, call it something like access_check.cap, and run cap -T from the top directory and we'll be able to see the task listed:

    @@ -554,8 +556,8 @@ DEBUG [f40edfbb] 3419812c9f146d9a84b44bcc2c3caef94da54758 refs/heads/master
    diff --git a/_site/documentation/getting-started/flow/index.html b/_site/documentation/getting-started/flow/index.html index dd8e4f47..6067cba3 100644 --- a/_site/documentation/getting-started/flow/index.html +++ b/_site/documentation/getting-started/flow/index.html @@ -70,14 +70,16 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • +
  • Host filtering
  • Using Capistrano from pure Ruby
  • Framework Extensions
    @@ -350,8 +352,8 @@ require 'capistrano/rails/assets'
    diff --git a/_site/documentation/getting-started/installation/index.html b/_site/documentation/getting-started/installation/index.html index ed4cbe40..96b22a71 100644 --- a/_site/documentation/getting-started/installation/index.html +++ b/_site/documentation/getting-started/installation/index.html @@ -70,14 +70,16 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • +
  • Host filtering
  • Using Capistrano from pure Ruby
  • Framework Extensions
    @@ -282,8 +284,8 @@ the risk of accidentally upgrading to v3.
    diff --git a/_site/documentation/getting-started/preparing-your-application/index.html b/_site/documentation/getting-started/preparing-your-application/index.html index b8421346..3f56064a 100644 --- a/_site/documentation/getting-started/preparing-your-application/index.html +++ b/_site/documentation/getting-started/preparing-your-application/index.html @@ -70,14 +70,16 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • +
  • Host filtering
  • Using Capistrano from pure Ruby
  • Framework Extensions
    @@ -180,6 +182,8 @@ $ cap install
    └── tasks
    +

    Your new Capfile will automatically any tasks from any *.cap files in lib/capistrano/tasks.

    +

    4. Configure your server addresses in the generated files.

    We'll just work with the staging environment here, so you can pretend that @@ -372,6 +376,8 @@ $ cap install └── tasks

    +

    Your new Capfile will automatically any tasks from any *.cap files in lib/capistrano/tasks.

    +

    4. Configure your server addresses in the generated files.

    We'll just work with the staging environment here, so you can pretend that @@ -498,8 +504,8 @@ to authorise Capistrano on our servers yet.

    diff --git a/_site/documentation/getting-started/rollbacks/index.html b/_site/documentation/getting-started/rollbacks/index.html index f8f5f489..0a5fcd0e 100644 --- a/_site/documentation/getting-started/rollbacks/index.html +++ b/_site/documentation/getting-started/rollbacks/index.html @@ -70,14 +70,16 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • +
  • Host filtering
  • Using Capistrano from pure Ruby
  • Framework Extensions
    @@ -136,8 +138,8 @@
    diff --git a/_site/documentation/overview/introductory-demo-video/index.html b/_site/documentation/overview/introductory-demo-video/index.html index 287b9b93..4e2f4154 100644 --- a/_site/documentation/overview/introductory-demo-video/index.html +++ b/_site/documentation/overview/introductory-demo-video/index.html @@ -70,14 +70,16 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • +
  • Host filtering
  • Using Capistrano from pure Ruby
  • Framework Extensions
    @@ -192,8 +194,8 @@ sitting and watching Ruby compile, for example!)

    diff --git a/_site/documentation/overview/what-is-capistrano/index.html b/_site/documentation/overview/what-is-capistrano/index.html index e80bb1ba..c0e4efcb 100644 --- a/_site/documentation/overview/what-is-capistrano/index.html +++ b/_site/documentation/overview/what-is-capistrano/index.html @@ -70,14 +70,16 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • +
  • Host filtering
  • Using Capistrano from pure Ruby
  • Framework Extensions
    @@ -426,8 +428,8 @@ end
    diff --git a/_site/documentation/upgrading/index.html b/_site/documentation/upgrading/index.html index a49a8e27..cd3b58fc 100644 --- a/_site/documentation/upgrading/index.html +++ b/_site/documentation/upgrading/index.html @@ -70,14 +70,16 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • +
  • Host filtering
  • Using Capistrano from pure Ruby
  • Framework Extensions
    @@ -300,8 +302,8 @@ end
    diff --git a/_site/index.html b/_site/index.html index e3d42312..502677e3 100644 --- a/_site/index.html +++ b/_site/index.html @@ -70,14 +70,16 @@
  • The Readme, start here!
  • Installation
  • Preparing Your Application
  • -
  • Authentication & Authorisation
  • +
  • Authentication & Authorisation
  • Cold Start
  • Flow
  • Rollbacks
  • Advanced Features
    +
  • Remote commands with SSHKit
  • Remote file task
  • Role filtering
  • +
  • Host filtering
  • Using Capistrano from pure Ruby
  • Framework Extensions
    @@ -194,8 +196,8 @@ extended to support them.

    diff --git a/documentation/advanced-features/ssh-kit/index.markdown b/documentation/advanced-features/ssh-kit/index.markdown new file mode 100644 index 00000000..0d5f7581 --- /dev/null +++ b/documentation/advanced-features/ssh-kit/index.markdown @@ -0,0 +1,30 @@ +--- +title: Remote commands with SSH Kit +layout: default +--- + +Capistrano executes commands on remote servers using [**SSHKit**](https://github.com/capistrano/sshkit). + +An example setting a working directory, user and environment variable: + +{% prism ruby %} +on roles(:app), in: :sequence, wait: 5 do + within "/opt/sites/example.com" do + # commands in this block execute in the + # directory: /opt/sites/example.com + as :deploy do + # commands in this block execute as the "deploy" user. + with rails_env: :production do + # commands in this block execute with the environment + # variable RAILS_ENV=production + rake "assets:precompile" + runner "S3::Sync.notify" + end + end + end +end +{% endprism %} + +For more examples, see the EXAMPLES.md file in the [**SSHKit**](https://github.com/capistrano/sshkit) project: + +[https://github.com/capistrano/sshkit/blob/master/EXAMPLES.md](https://github.com/capistrano/sshkit/blob/master/EXAMPLES.md) diff --git a/documentation/getting-started/cold-start/index.markdown b/documentation/getting-started/cold-start/index.markdown index 7f74435a..09059c99 100644 --- a/documentation/getting-started/cold-start/index.markdown +++ b/documentation/getting-started/cold-start/index.markdown @@ -65,7 +65,7 @@ writing your own tasks, namely `desc()`, `task()`, `on()`, `roles()`, The first two methods, `desc()` and `task()` are actually from Rake, the library that forms the foundation of the Capistrano task system, the other methods are part of our sub-project -[**SSHKit**](https://github.com/leehambley/sshkit). We'll dive into those more +[**SSHKit**](https://github.com/capistrano/sshkit). We'll dive into those more later, but add those lines to a file in `./lib/capistrano/tasks`, call it something like `access_check.cap`, and run `cap -T` from the top directory and we'll be able to see the task listed: diff --git a/documentation/getting-started/preparing-your-application/index.markdown b/documentation/getting-started/preparing-your-application/index.markdown index de2502cf..7f9d3109 100644 --- a/documentation/getting-started/preparing-your-application/index.markdown +++ b/documentation/getting-started/preparing-your-application/index.markdown @@ -67,6 +67,8 @@ This will create a bunch of files, the important ones are: └── tasks {% endprism %} +Your new Capfile will automatically any tasks from any *.cap files in lib/capistrano/tasks. + ### 4. Configure your server addresses in the generated files. We'll just work with the staging environment here, so you can pretend that