Switchtower question: how to use SVN export

I use Switchtower to deploy my Ruby on Rails application, which works
great. However, it appears to be doing a SVN checkout, which includes
all the .svn directories as well. I would rather do an export from SVN.

Is it possible to configure Switchtower to do this, or can I extend it
in the deploy.rb? I haven’t been able to find any examples on the
internet so far.

thanks,

Jeroen Heijmans

At the risk of being an uber-hack, you could override checkout() in
SwitchTower::SCM::Subversion to perform an export instead.

Thanks. I can do this by just overriding this class in the deploy.rb, or
do I need to put it elsewhere (Sorry, my Ruby knowledge is still rather
limited)?

Jeroen Heijmans <rails@…> writes:

Jeroen Heijmans

At the risk of being an uber-hack, you could override checkout() in
SwitchTower::SCM::Subversion to perform an export instead. There’s a
line that looks like:

command = “#{svn} co -q -r#{configuration.revision}
#{configuration.repository}
#{actor.release_path};”

That contains the command that will be run.

It would be nice though if you were given the option to specify the SCM
command to use or even better, a string such as the one just shown.

Just a thought.

Cheers,

Simon

On 12/21/05 9:03 AM, “Simon Harris” [email protected]
wrote:

It would be nice though if you were given the option to specify the SCM
command to use or even better, a string such as the one just shown.

I too would like to see this as an option (if not the default) in a new
release of Switchtower.

~ Mike

Work: http://ClickableBliss.com
Play: http://MikeZornek.com

On Dec 21, 2005, at 8:27 AM, Mike Zornek wrote:

On 12/21/05 9:03 AM, “Simon Harris”
[email protected] wrote:

It would be nice though if you were given the option to specify
the SCM
command to use or even better, a string such as the one just shown.

I too would like to see this as an option (if not the default) in a
new
release of Switchtower.

It will be. I hope to spend a bit of time on ST this weekend. (Of
course, a patch is always the quickest way to see your heart’s desire
granted… hint hint)

Please, feel free to use the rails bug tracker to post feature
requests for SwitchTower. Just assign them to me
([email protected]). That way they won’t get lost in the forest of
mailing list posts.

  • Jamis