<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.lang.ruby.capistrano.general">
    <title>gmane.comp.lang.ruby.capistrano.general</title>
    <link>http://blog.gmane.org/gmane.comp.lang.ruby.capistrano.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9801"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9800"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9797"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9793"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9792"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9785"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9783"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9781"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9780"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9776"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9772"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9762"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9761"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9760"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9759"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9754"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9751"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9750"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9746"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9739"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9801">
    <title>Err or during cap deploy:update</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9801</link>
    <description>&lt;pre&gt;I can not find what is wrong. I have tried to change the passwords
then try again with no luck. This is the error message I am recieving.

  * executing `deploy:update_code'
    executing locally: "git ls-remote https://chrisgogreen-9UaJU3cA/F/QT0dZR+AlfA&amp;lt; at &amp;gt;public.gmane.org/chrisgogreen/deckchainrails.git
HEAD"
Password for 'https://chrisgogreen-9UaJU3cA/F/QT0dZR+AlfA&amp;lt; at &amp;gt;public.gmane.org':
    command finished in 10205ms
  * executing "git clone -q https://chrisgogreen-9UaJU3cA/F/QT0dZR+AlfA&amp;lt; at &amp;gt;public.gmane.org/chrisgogreen/deckchainrails.git
/home/deployer/public/deckchain.com/public/deckchainrails/releases/
20120522190033 &amp;amp;&amp;amp; cd /home/deployer/public/deckchain.
com/public/deckchainrails/releases/20120522190033 &amp;amp;&amp;amp; git checkout -q -
b deploy 97cb1b474fa60f164155242a4beb96fb906f8906 &amp;amp;&amp;amp; (echo
97cb1b474fa60f164155242a4beb96fb906f8906 &amp;gt; /home/deployer/public/
deckchain.com/publ
ic/deckchainrails/releases/20120522190033/REVISION)"
    servers: ["66.228.43.38"]
Password:
    [66.228.43.38] executing command
 ** [66.228.43.38 :: err] Password:
Password:


Please any help will be appreciated.

&lt;/pre&gt;</description>
    <dc:creator>opensourcechris</dc:creator>
    <dc:date>2012-05-22T19:03:25</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9800">
    <title>Rails App doesn't find gems after deploy</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9800</link>
    <description>&lt;pre&gt;Hello all, 

I'm trying to implement capistrano to deploy from my workstation to another 
server. I followed the instructions from 2.x-From-The-Beginning&amp;lt;https://github.com/capistrano/capistrano/wiki/2.x-From-The-Beginning&amp;gt;, 
and I configured my apache server according to this serverfault answer&amp;lt;http://serverfault.com/a/65416/116448&amp;gt;
.

However, when I use capistrano to transport it to the other server, the 
rails app doesn't seems to find methods containen in gems, like paginate 
from will_paginate. If I remove the references to that gem, then rails will 
complain about not finding some other method of another gem, like the ones 
from blueprint-rails.

I'm guessing that it could be some problem with the config of my 
environment, or maybe in my capistrano config, but right now I'm out of 
ideas, and don't know what else to check. Any ideas?

Some info that might help:

Ruby:

$ rvm list

rvm rubies

   ruby-1.9.2-p290 [ i686 ]
=* ruby-1.9.3-p194 [ i686 ]

Capistrano:
$ cap --version
Capistrano v2.12.0

My deploy.rb
http://pastie.org/3951922

My Capfile
http://pastie.org/3951928

Thanks! any suggestions will be appreciated


&lt;/pre&gt;</description>
    <dc:creator>Ramsés López</dc:creator>
    <dc:date>2012-05-22T20:28:26</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9797">
    <title>How can I make `run` or `download` methods to always use the :roles I declared in the code?</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9797</link>
    <description>&lt;pre&gt;Hi everyone,

When I tried to do this:
1. remove the target server from my nginx upstream 
2. reload nginx
3. restart my app server #
4. add back to nginx upstream
5. reload nginx.

 Because I declared a ROLES or HOSTS env, all commands are running at the app server. The env hide the :roles =&amp;gt; :nginx I passed into the `run` `download` methods.
For some reasons I can not declare :roles =&amp;gt; on the task, which means I must use the env vars to declare which host I want to deploy.
How can do this?



Best regards.

&lt;/pre&gt;</description>
    <dc:creator>赵 耀</dc:creator>
    <dc:date>2012-05-22T07:52:15</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9793">
    <title>deploying a branch</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9793</link>
    <description>&lt;pre&gt; 

I've read that with -s I can deploy a specific branch. I tried this and it 
failed. The branch is only on my local dev machine. Does it also have to be 
on the remote server?

(This post is not cross-posted anywhere)

&lt;/pre&gt;</description>
    <dc:creator>Benjamin Moses Lieb</dc:creator>
    <dc:date>2012-05-22T00:57:49</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9792">
    <title>how deploy a branch</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9792</link>
    <description>&lt;pre&gt; 

I've read that with -s I can deploy a specific branch. I tried this and it 
failed. The branch is only on my local dev machine. Does it also have to be 
on the remote server?

&lt;/pre&gt;</description>
    <dc:creator>Benjamin Moses Lieb</dc:creator>
    <dc:date>2012-05-22T00:40:43</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9785">
    <title>What's the difference between ssh remote command and capistrano run?</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9785</link>
    <description>&lt;pre&gt;I use capistrano to deploy my java app which is deployed to a resin server.
When I use 
run "/path/to/resin/bin/httpd.sh restart"
I just got logs said the server was shuting down, but the server was never started.

But when I use 
ssh $host "/path/to/resin/bin/httpd.sh restart"
from command line, it works just fine.

So what is the difference?




Best regards.

&lt;/pre&gt;</description>
    <dc:creator>赵 耀</dc:creator>
    <dc:date>2012-05-21T10:13:27</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9783">
    <title>I'm getting this error when running this capistrano task (my own - cap deploy:show_pointers):</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9783</link>
    <description>&lt;pre&gt;

I'm getting this error when running this capistrano task (my own - cap 
deploy:show_pointers):

  * executing `deploy:show_pointers'
  * executing "cd /home/mydomain/public_html/site_folders/rails/current; rake app:show_pointers"
    servers: ["mydomain.net"]
    [mydomain.net] executing command
 ** [out :: mydomain.net] (in /home/mydomain/public_html/site_folders/rails/releases/20120521025150)
 ** [out :: mydomain.net] Could not find rake-0.9.2 in any of the sources
 ** [out :: mydomain.net] Try running `bundle install`.
    command finished in 1584ms
failed: "sh -c 'cd /home/mydomain/public_html/site_folders/rails/current; rake app:show_pointers'" on mydomain.net

However when I run

sh -c 'cd /home/mydomain/public_html/site_folders/rails/current; rake app:show_pointers

manually from the same dir that capistrano logs into, it works. I have 
capistrano set to NOT USE sudo, so that shouldn't be the issue, but it 
sounds like it might be, since the above command fails with sudo. I think 
this is a user issue, or maybe an environment var issue. Or I'm not sure 
what.

Any suggestsions. This is a task that is already a rake task, but it will 
help me not to have to log into the server every time I run it (and about 
10 more like it).

Appreciate any help on this.

&lt;/pre&gt;</description>
    <dc:creator>Benjamin Moses Lieb</dc:creator>
    <dc:date>2012-05-21T03:07:35</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9781">
    <title>--deployment flag requires a Gemfile.lock</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9781</link>
    <description>&lt;pre&gt;When I try to run cap deploy:cold I get this error message.

error:

The --deployment flag requires a Gemfile.lock. Please make sure you
have checked your Gemfile.lock into version control before deploying.



Please note:   I am not using rails or anything specific. I simply run
capify .  &amp;amp; provided url for server &amp;amp; subversion repo.

I just want my files to be uploaded to the server.




&lt;/pre&gt;</description>
    <dc:creator>jp</dc:creator>
    <dc:date>2012-05-21T00:32:56</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9780">
    <title>error:     no-auth-cache  -rHEAD returned status code pid 65009 exit 1</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9780</link>
    <description>&lt;pre&gt;When I try to execute $ cap deploy:cold I get the error.   --no-auth-
cache  -rHEAD returned status code pid 65009 exit 1


Command svn info http://corporation.com:1080/SVNROOT/LOCALIZATION/branches/location_of_my_directory/jay/
--username parteek --password --mypassword-- --no-auth-cache  -rHEAD
returned status code pid 65009 exit 1

&lt;/pre&gt;</description>
    <dc:creator>jp</dc:creator>
    <dc:date>2012-05-21T00:27:04</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9776">
    <title>Is Capistrano needed in a Rails app's Gemfile?</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9776</link>
    <description>&lt;pre&gt;Hi guys. Is it necessary to put Capistrano in a Rails app's Gemfile, or at 
least, in the "development" group in the Gemfile?

If not, are there any benefits to doing so?

Thanks,
Nick

&lt;/pre&gt;</description>
    <dc:creator>Nick Hoffman</dc:creator>
    <dc:date>2012-05-11T15:24:55</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9772">
    <title>controlling order of execution of tasks in one namespace</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9772</link>
    <description>&lt;pre&gt;Hi everyone,

I'm new to Capistrano and I was wondering how you can control the
order of execution of tasks in a certain name space.

For example, I have some extra tasks in my deploy namespace.  I wanted
deploy:bundle and deploy:assets to run before deploy:restart so I
added these lines


after 'deploy:update_code', 'deploy:bundle'
after 'deploy:bundle', 'deploy:assets'
after 'deploy:assets', 'deploy:restart'

I'm not sure if this how you're supposed to do it.  Please let me know
if you guys have any tips for me!

namespace :deploy do
   task :start do ; end
   task :stop do ; end
   task :restart, :roles =&amp;gt; :app, :except =&amp;gt; { :no_release =&amp;gt; true }
do
     run "touch #{current_path}/tmp/restart.txt"
   end

  task :bundle do
    run "cd #{current_path} &amp;amp;&amp;amp; bundle install"
  end

  task :assets do
     run "cd #{current_path} &amp;amp;&amp;amp; bundle exec rake assets:precompile"
  end

 end

after 'deploy:update_code', 'deploy:bundle'
after 'deploy:bundle', 'deploy:assets'
after 'deploy:assets', 'deploy:restart'

&lt;/pre&gt;</description>
    <dc:creator>sq1020</dc:creator>
    <dc:date>2012-04-24T23:38:43</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9762">
    <title>Best practices to cap deploy:start on boot</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9762</link>
    <description>&lt;pre&gt;Hello all,

I would like to know the best practices and references to
servers start on boot.

Even with high uptime servers, we need to certify that server(s)
are running after a reboot, so this is necessary...

I saw some just copying scripts to /etc/init.d and activating them.
But I would like to know more...

Thankfully,
bráulio

&lt;/pre&gt;</description>
    <dc:creator>Bráulio Bhavamitra</dc:creator>
    <dc:date>2012-04-18T18:31:28</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9761">
    <title>How do I take multiple values for same name in -S option?</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9761</link>
    <description>&lt;pre&gt;Hi, 

I have few binaries, like so:  xx-1ab, xx-2bc, xx-3cd, xx-4de
I have written a task to kill the binaries using pkill. For that, the cap 
command I used is something like: 

cap -S kill=xx-2bc kill-bin

This is ok if I want to restart only 1 specific binary. How do I do if I 
want to restart 2 binaries? 
I am looking for something in lines of 

cap -S kill=xx-2bc, xx-3cd kill-bin

How to make such things happen? 
ps: if you know a better approach, let me know...

Regards, 
shrinath_m2

&lt;/pre&gt;</description>
    <dc:creator>shrinath_m2</dc:creator>
    <dc:date>2012-04-17T13:54:56</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9760">
    <title>Deploying to servers behind a gateway</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9760</link>
    <description>&lt;pre&gt;Hi All,

I have a not-so-abnormal setup of a server which is behind a gateway.
The gateway access is available with SSH, and once there, I can ssh to
the target server without a password.

The gateway and target servers have different usernames (target is
running as root - I know, I didn't set it up). I've read many article
on Gateway setup, and have something like this:

config/deploy.rb
set :gateway, "dialup.ssh.server"
set :user "my_user_name"
set :ssh_options, {:forward_agent =&amp;gt; true}
#other options

config/deploy/staging.rb
server "internal.server", :app, :web, :db, :primary =&amp;gt; true, :user =&amp;gt;
'root'
#other options

When I run cap deploy:setup it connects to the gateway fine, then it
attempts to connect to my internal server, which fails with a
Net::SSH::AuthenticationFailed: root error.

What I've tried:
server "internal.server", :app, :web, :db, :primary =&amp;gt; true, :user =&amp;gt;
'root', :password =&amp;gt; nil
server "internal.server", :app, :web, :db, :primary =&amp;gt; true, :user =&amp;gt;
'root', :auth_methods =&amp;gt; ["publickey", "hostbased"]

Any other suggestions?

Cory

&lt;/pre&gt;</description>
    <dc:creator>Cory Foy</dc:creator>
    <dc:date>2012-04-17T01:34:29</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9759">
    <title>Deploying to servers behind a gateway</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9759</link>
    <description>&lt;pre&gt;Hi All,

I have a not-so-abnormal setup of a server which is behind a gateway.
The gateway access is available with SSH, and once there, I can ssh to
the target server without a password.

The gateway and target servers have different usernames (target is
running as root - I know, I didn't set it up). I've read many article
on Gateway setup, and have something like this:

config/deploy.rb
set :gateway, "dialup.ssh.server"
set :user "my_user_name"

&lt;/pre&gt;</description>
    <dc:creator>Cory Foy</dc:creator>
    <dc:date>2012-04-17T01:28:33</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9754">
    <title>'Authenticity of host' message with Rsync</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9754</link>
    <description>&lt;pre&gt;Hi there. I am attempting to write a little recipes that using rsync to 
copy some images to my server. It looks like this:

  task :upload_images, roles: :app do
    run "rsync -r -u -v images/ #{user}&amp;lt; at &amp;gt;#{address}:#{shared_path}/images"
  end

I can run the command fine directly on the command line, but when run via 
Capistrano I get a 'authenticity of host '...' can't be established.' 
message, despite the fact that I can run the regular cap:deploy stuff fine. 
After saying "yes" to the "Are you sure you want to continue connecting" 
message, it hangs forever.

Any ideas why this command isn't connecting to the server properly? Thanks!

&lt;/pre&gt;</description>
    <dc:creator>mafordha</dc:creator>
    <dc:date>2012-04-10T17:05:10</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9751">
    <title>FYI about using perforce labels with Capistrano</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9751</link>
    <description>&lt;pre&gt;I have seen a few posts regarding how to use perforce labels with
Capistrano and now notice the perforce rev_no(revision) method has
been updated to include a new :p4_label variable.  I have never had an
issue using perforce labels in the past without this newly
added :p4_label variable.  (can't find any discussions
regarding :p4_label in this group)

&amp;lt; at &amp;gt;appname-x.x.x.x is our label convention.  By setting the
revision=&amp;lt; at &amp;gt;appname-x.x.x.x on the cmd line, Capistrano has always
(well, as long as I've been using it) been able to grab the correct
version of my files.
ex: $ cap &amp;lt;environment&amp;gt; -S revision=&amp;lt; at &amp;gt;appname-x.x.x.x deploy
(I use the capistrano-ext rubygem to set multiple environments)

Also, by setting :release_name in my deploy.rb file, I am able to pull
the perforce label apart and use it as the release dir name, as in:
set(:release_name)  { set :deploy_timestamped, true;
"#{ Time.now.utc.strftime('%Y_%m_%d_%H%M') }_#{ revision.gsub('.',
'_').gsub('&amp;lt; at &amp;gt;', '') }" }

It would be nice to be able to just do  "$ cap &amp;lt;environment&amp;gt; &amp;lt; at &amp;gt;appname-
x.x.x.x deploy" and have Capistrano understand the revision... always
adding the "-S revision=" seems longer than it needs to be.

Cheers,
-=Randy

&lt;/pre&gt;</description>
    <dc:creator>RandyInLA</dc:creator>
    <dc:date>2012-04-05T02:35:10</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9750">
    <title>Add new perforce variable - How to overload a Private method in the perforce.rb file?</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9750</link>
    <description>&lt;pre&gt;Greetings!

My Perforce admin recently decided to force us to add the unicode
variable, "-C utf8", for all perforce transactions.  The unicode var
can't be part of :p4sync_flags, nor can it be added as any extra
options.  Per the Perforce syntax, it has to live within the existing
Capistrano authentication method.  I can hack the actual perforce.rb
file, adding the new variable &amp;amp; update the authentication Private
method to include it, but can't figure out how to overload/override
the authentication method in my recipes!  I'd rather either override
the methods in my recipe or submit a change to update Capistrano.  I
copied the perforce.rb file, made my changes and pulled out everything
else that shouldn't change:

-----------------------------------------------------------------------------------------------------------
module Capistrano
  module Deploy
    module SCM

      class Perforce &amp;lt; Base
        private

          # override
          def authentication
            [ p4port        &amp;amp;&amp;amp; "-p #{ p4port }",
              p4user       &amp;amp;&amp;amp; "-u #{ p4user }",
              p4passwd  &amp;amp;&amp;amp; "-P #{ p4passwd }",
              p4client     &amp;amp;&amp;amp; "-c #{ p4client }",
              p4unicode &amp;amp;&amp;amp; "-C #{ p4unicode }" ].compact.join(" ")
          end

          # new
          def p4unicode
            variable(:p4unicode)
          end

      end
    end
  end
end
-----------------------------------------------------------------------------------------------------------

I've tried putting this in environment.rb, a separate file under /
initializers &amp;amp; deploy.rb, all without success.  I currently have it
working by hacking the original perforce.rb file in the rubygem and
that just feels dirty.  If anyone can help me override this via my
deploy.rb file or walk me through how to submit a change to
Capistrano, I'd be very grateful!

Thanks!
-=Randy

&lt;/pre&gt;</description>
    <dc:creator>RandyInLA</dc:creator>
    <dc:date>2012-04-05T02:09:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9746">
    <title>How to set conditional variables in capistrano's deploy.rb?</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9746</link>
    <description>&lt;pre&gt;

Snippets from my deploy.rb

task :prod1 do
  set :deploy_to, "/home/project/src/prod1"
end

task :prod2 do
  set :deploy_to, "/home/project/src/prod2"
end

I have 2 tasks like the above. Now instead of manually running either "cap 
prod1 deploy" or "cap prod2 deploy", I want to create a task "prod" which 
sets the required "deploy_to" based on the existence of a file on the 
server.

something like:

task :prod do
  if (A_FILE_IN_SERVER_EXISTS)
    set :deploy_to, "/home/project/src/prod2"
  else 
    set :deploy_to, "/home/project/src/prod1"
end

How do I do that?


Stackoverflow 
link: http://stackoverflow.com/questions/9996574/how-to-set-conditional-variables-in-capistranos-deploy-rb

&lt;/pre&gt;</description>
    <dc:creator>Saurav Shah</dc:creator>
    <dc:date>2012-04-03T18:11:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9739">
    <title>Per-Role SSH Options</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9739</link>
    <description>&lt;pre&gt;Hi there,

I'm trying to define different sets of ssh options for different roles
listed in my capfile. I'd like three of my roles to have their ssh
user be root, but two of my roles to be a different user with a custom
ssh key.

I can't see how to set ssh_options to be different for different
roles: it looks to me like this is a standard hash that's parsed once
and the last entry for any option overwrites any previous entry. I
feel like I'm missing something incredibly obvious, though.

I would simply use an ssh config file to resolve this issue, but I'm
connecting through a gateway that I don't control.

Thanks for any help you can give

James

&lt;/pre&gt;</description>
    <dc:creator>James</dc:creator>
    <dc:date>2012-03-16T17:42:36</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9730">
    <title>How to send deployment email for Capistrano task in rail-less app</title>
    <link>http://comments.gmane.org/gmane.comp.lang.ruby.capistrano.general/9730</link>
    <description>&lt;pre&gt;Hi everybody,

We have several rail-less ruby apps that are deployed in production by
Capistrano scripts. Capistrano is awesome but one thing seems to be
missing there for us. Email notifications in order to keep track of
what has been deployed. I know there is RoR CapMailer plugin but it
doesn't seem to be a good fit since our apps are not RoR. Basically we
are looking for a way to capture full stdout of any capistrano task
and email it. Any pointers? Thanks.

&lt;/pre&gt;</description>
    <dc:creator>Alex Vinnik</dc:creator>
    <dc:date>2012-03-15T14:57:46</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.lang.ruby.capistrano.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lang.ruby.capistrano.general</link>
  </textinput>
</rdf:RDF>

