diff options
author | Jeremy McAnally <jeremymcanally@gmail.com> | 2008-12-02 17:22:27 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-12-02 19:39:11 +0100 |
commit | e8cc4b116c460c524961a07da92da3f323854c15 (patch) | |
tree | aac0dee8ad4b1ebcf2f1e71f4cd963c1123003ce /railties/lib/rails_generator/generators/applications/app/scm/svn.rb | |
parent | 2014d9141aaa8e40a030875de35570b1061b7c2f (diff) | |
download | rails-e8cc4b116c460c524961a07da92da3f323854c15.tar.gz rails-e8cc4b116c460c524961a07da92da3f323854c15.tar.bz2 rails-e8cc4b116c460c524961a07da92da3f323854c15.zip |
Add "-m/--template" option to Rails generator to apply template to generated application.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'railties/lib/rails_generator/generators/applications/app/scm/svn.rb')
-rw-r--r-- | railties/lib/rails_generator/generators/applications/app/scm/svn.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/lib/rails_generator/generators/applications/app/scm/svn.rb b/railties/lib/rails_generator/generators/applications/app/scm/svn.rb new file mode 100644 index 0000000000..22b5966d25 --- /dev/null +++ b/railties/lib/rails_generator/generators/applications/app/scm/svn.rb @@ -0,0 +1,7 @@ +module Rails + class Svn < Scm + def self.checkout(repos, branch = nil) + `svn checkout #{repos}/#{branch || "trunk"}` + end + end +end
\ No newline at end of file |