# Switchtower question: how to use SVN export

**URL:** <https://www.ruby-forum.com/t/switchtower-question-how-to-use-svn-export/50821>\
**Category:** Rails\
**Created:** [December 21, 2005, 2:48pm UTC](https://www.ruby-forum.com/t/switchtower-question-how-to-use-svn-export/50821 "2005-12-21T14:48:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeroen\_Heijmans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e56c9b/32.png) [@Jeroen\_Heijmans](https://www.ruby-forum.com/u/Jeroen_Heijmans)\
**Post date:** [December 21, 2005, 2:48pm UTC](https://www.ruby-forum.com/t/switchtower-question-how-to-use-svn-export/50821/1 "2005-12-21T14:48:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jeroen\_Heijmans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e56c9b/32.png) [@Jeroen\_Heijmans](https://www.ruby-forum.com/u/Jeroen_Heijmans)\
**Post date:** [December 21, 2005, 3:21pm UTC](https://www.ruby-forum.com/t/switchtower-question-how-to-use-svn-export/50821/2 "2005-12-21T15:21:12Z")

</div>

> 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)?

---

<div class="post-metadata">

**Author:** ![Jeroen\_Heijmans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e56c9b/32.png) [@Jeroen\_Heijmans](https://www.ruby-forum.com/u/Jeroen_Heijmans)\
**Post date:** [December 21, 2005, 3:12pm UTC](https://www.ruby-forum.com/t/switchtower-question-how-to-use-svn-export/50821/3 "2005-12-21T15:12:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jeroen\_Heijmans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e56c9b/32.png) [@Jeroen\_Heijmans](https://www.ruby-forum.com/u/Jeroen_Heijmans)\
**Post date:** [December 21, 2005, 4:28pm UTC](https://www.ruby-forum.com/t/switchtower-question-how-to-use-svn-export/50821/4 "2005-12-21T16:28:43Z")

</div>

On 12/21/05 9:03 AM, “Simon Harris” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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](http://ClickableBliss.com)  
Play: [http://MikeZornek.com](http://MikeZornek.com)

---

<div class="post-metadata">

**Author:** ![Jeroen\_Heijmans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e56c9b/32.png) [@Jeroen\_Heijmans](https://www.ruby-forum.com/u/Jeroen_Heijmans)\
**Post date:** [December 22, 2005, 4:30pm UTC](https://www.ruby-forum.com/t/switchtower-question-how-to-use-svn-export/50821/5 "2005-12-22T16:30:23Z")

</div>

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

> On 12/21/05 9:03 AM, “Simon Harris”  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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  
(removed\_email\_address@domain.invalid). That way they won’t get lost in the forest of  
mailing list posts.

- Jamis
