Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on May 8, 2015
  1. @theist

    Allow use "all" as string in addition to a symbol for server filtering

    theist authored
    By default capistrano does not let you to use "all" as a string for
    specify all available servers:
    
    ```
    [6] pry(main)> on roles("web") do | h |
    [6] pry(main)*   puts h
    [6] pry(main)* end
    192.168.10.185
    => [#<Thread:0x007f718c83ae00@/home/carlos/.rbenv/versions/2.2.0/gemsets/capistrano/gems/sshkit-1.7.1/lib/sshkit/runners/parallel.rb:11 dead>]
    [7] pry(main)> on roles("all") do | h |
    [7] pry(main)*   puts h
    [7] pry(main)* end
    => []
    [8] pry(main)> on roles(:all) do | h |
    [8] pry(main)*   puts h
    [8] pry(main)* end
    192.168.10.185
    ```
    
    This commit allows you to use "all" as string to specify all servers as
    well, as any other role specification
Commits on May 2, 2015
  1. @mattbrictson
Commits on Mar 31, 2015
  1. @Tei

    fix typo

    Tei authored
Commits on Mar 23, 2015
  1. @jcoglan

    Bind post_task lazily in TaskEnhancements#after.

    jcoglan authored
    Consider you have two files:
    
        # a.rake
    
        task :a do
        end
        after :a, :b
    
        # b.rake
    
        task :b do
        end
    
    If `a.rake` is loaded before `b.rake`, it will fail, complaining that
    "Don't know how to build task b". This is because TaskEnhancements#after
    tries to look up task `b` before it's been defined.
    
    However, the task is not actually needed until execution gets inside the
    block that's passed to Rake::Task#enhance, at which point all tasks
    should have been loaded and it's legitimate to complain about a task not
    being recognised.
    
    Havign this change allows app authors to write something like
    
        Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
    
    in their Capfile and not explicitly define load order. This cannot be
    solved by calling `require` at the top of `a.rake` because `require`
    throws a `LoadError` on `.rake` files. It also cannot be solved by
    calling `import` at the top of `a.rake`, because Rake's `import` does
    not load the referenced file immediately; it puts it in a queue and
    continues processing the current file.
Commits on Mar 21, 2015
  1. @dsthode
Commits on Mar 5, 2015
  1. @townsen

    Correctly filter literal hostnames in on() block

    townsen authored
    When a literal hostname was supplied instead of a server object created
    by the DSL 'server' keyword, on-filtering would not work.
    
    Now host filtering works as expected, and role filtering causes no
    servers to be returned (as literally defined servers have no roles)
Commits on Mar 3, 2015
  1. remove post-install message

    Thomas Kriechbaumer authored
Commits on Mar 2, 2015
  1. Preparing Release v3.4.0

    Lee Hambley authored
Commits on Feb 14, 2015
  1. @townsen

    Copy the servers yielded to on()

    townsen authored townsen committed
    This allows the SSH connection attributes to be temporarily overridden
Commits on Feb 6, 2015
  1. @townsen

    Add role_properties helper method()

    townsen authored
    When defining properties for a role on a server, a useful convention
    is to make the property name the same as the role. This method
    facilitates easy retrieval and iteration through them.
    
    See the updated documentation in capistrano.github.io
Commits on Feb 3, 2015
  1. @townsen

    Optionally specify repository clone path via :repo_path

    townsen authored
    Allows a stage file to specify the location for the repo directly
    by setting the stage variable :repo_path
    The normal default "#{deploy_path}/repo" is used if not specified
    
    Move path tests out of dsl_spec.rb into paths_spec.rb and tidy-up
Commits on Jan 29, 2015
  1. clarify wording and syntaxes in stage template

    Thomas Kriechbaumer authored
Commits on Jan 27, 2015
  1. @townsen

    Improvements to Property Filtering

    townsen authored
    * Bugfix:
      * release_roles did not honour additional property filtering
      * Refactored and simplified property filtering code
    
    * Minor changes
      * Add equality syntax ( eg. port: 1234) for property filtering
      * Add documentation regarding property filtering
  2. @Narnach

    Mark version 3.3.3's tracking of anonymous statistics as a breaking c…

    Narnach authored
    …hange
    
    After upgrading from 3.2.x to 3.3.x and scanning the changelog for breaking changes, this change broke automated deployment via our continuous deployment. I had to run a manual deploy to create the settings file, after which our CI server could deploy again.
    
    I'm baffled that this was not marked as a breaking change, but I hope to rectify it after the fact with this commit.
Commits on Jan 20, 2015
  1. @igorsokolov

    Fixed fetch revision for annotated git tags

    igorsokolov authored
    When you create git tag with annotation by doing :
    ```
    git tag -a <tag-name> -m "Message"
    ```
    it creates new object. So
    
    ```
    git rev-parse <tag-name>
    ```
    returns the new commit SHA, while
    ```
    git rev-list --max-count=1 <tag-name>
    ```
    returns the tagged commit SHA.
    
    So this change helps to keep track on correct revision when :branch is set to annotated tag.
    
    Update CHANGELOG.md
Commits on Jan 12, 2015
  1. @kirs

    Do not suggest `bin/` to be shared directory by default

    kirs authored
    1) bin/ is often checked out into repo
    2) capistrano/bundler#45 (comment)
Commits on Jan 10, 2015
  1. @ayastreb

    Updated changelog.

    ayastreb authored
Commits on Dec 12, 2014
  1. @leehambley

    Preparing Release v3.3.5

    leehambley authored
  2. @leehambley

    Correct changelog

    leehambley authored
  3. Added changelog message.

    Anatoliy Yastreb authored
Commits on Dec 10, 2014
  1. @leehambley

    Update CHANGELOG.md

    leehambley authored
    Fixes the link to the diff spec.
  2. @leehambley

    Preparing Release v3.3.4

    leehambley authored
Commits on Dec 9, 2014
  1. @sponomarev
Commits on Dec 2, 2014
  1. @deeeki

    Fix v3.3.3 compare links

    deeeki authored
Commits on Nov 27, 2014
  1. @leehambley

    Preparing Release v3.3.3

    leehambley authored
Commits on Nov 17, 2014
  1. @townsen

    Merge remote-tracking branch 'upstream/master' into scm_subtree

    townsen authored
    Conflicts:
    	CHANGELOG.md
  2. @dmarkow

    Don't overwrite existing config files

    dmarkow authored Thomas Kriechbaumer committed
    Addresses #1094. Also, there was no :written_file notification for
    Capfile even though there was for all other config files.
  3. @theunraveler @leehambley

    Use --force in svn export command

    theunraveler authored leehambley committed
  4. @leehambley

    Merge pull request #1014 from mattbrictson/message-on-git-failure

    leehambley authored
    Show useful message when git:check fails, rather than silently exit
  5. @bruno- @leehambley

    Update assertions for 'git:check' test scenario

    bruno- authored leehambley committed
    Capistrano 'git:check' task executes a `git ls-remote -h #{repo_url}`
    command to check if remote repo is accessible. If successful, command
    output is a list of references and their SHAs.
    
    Task should be successful and we're pretty sure remote repo will have a
    `master` reference, so that's what we're asserting.
    
    We're NOT asserting:
     * repo references other than master - likely to change
     * reference SHAs - will definitely change
Commits on Nov 12, 2014
  1. @townsen

    Remove unnecessary entries from default backtrace

    townsen authored
    When the --backtrace (or --trace) command line option is not supplied
    Rake lowers the noise level in exception backtraces by building
    a regular expression containing all the system library paths and
    using it to exclude backtrace entries that match.
    
    This doesn't always go far enough, particularly in RVM environments when
    many gem paths are added. This commit reverses that approach and only
    include backtrace entries that fall within the Capfile and list of tasks
    imported thereafter.
    
    If the full unexpurgated backtrace is required then the --backtrace
    and --trace options supply it as before.
  2. @townsen

    Merge remote-tracking branch 'upstream/master' into scm_subtree

    townsen authored
    Conflicts:
    	CHANGELOG.md
Commits on Oct 21, 2014
  1. @sponomarev
Commits on Oct 16, 2014
  1. @shaneog

    Fix matching on hosts with custom ports or users set

    shaneog authored
    This is an update of PR #1072 with passing tests
    Thanks @cheald
    
    Fixes #1071
    Closes #1072
Commits on Oct 10, 2014
  1. @townsen

    Add subtree capability using :repo_tree variable

    townsen authored
    The variable `:repo_tree` now allows the specification of a sub-tree
    that will be extracted from the repository when deploying. This is
    useful when deploying a project that lives in a subdirectory of a larger
    repository.  Implemented only for git and hg.  If not defined then the
    behaviour is as previously and the whole repository is extracted.
    All extraction is as before still subject to git-archive `.gitattributes`
Something went wrong with that request. Please try again.