aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2008-01-02 19:24:44 +0000
committerRick Olson <technoweenie@gmail.com>2008-01-02 19:24:44 +0000
commit14f6440ed60a3e6bfa263cc30f10547ca52db64f (patch)
tree4868bc46466ba96f733972bf10749ce55a225c51 /railties
parent001fe6a435ad87fc353616663aaaeb307affd733 (diff)
downloadrails-14f6440ed60a3e6bfa263cc30f10547ca52db64f.tar.gz
rails-14f6440ed60a3e6bfa263cc30f10547ca52db64f.tar.bz2
rails-14f6440ed60a3e6bfa263cc30f10547ca52db64f.zip
Correct indentation in a couple spots. Closes #10671 [l.guidi, rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8527 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails_generator/commands.rb38
1 files changed, 19 insertions, 19 deletions
diff --git a/railties/lib/rails_generator/commands.rb b/railties/lib/rails_generator/commands.rb
index 6f90a44b8a..cbedd36d0e 100644
--- a/railties/lib/rails_generator/commands.rb
+++ b/railties/lib/rails_generator/commands.rb
@@ -310,26 +310,26 @@ HELP
logger.exists relative_path
else
logger.create relative_path
- unless options[:pretend]
- FileUtils.mkdir_p(path)
+ unless options[:pretend]
+ FileUtils.mkdir_p(path)
- # Subversion doesn't do path adds, so we need to add
- # each directory individually.
- # So stack up the directory tree and add the paths to
- # subversion in order without recursion.
- if options[:svn]
- stack=[relative_path]
- until File.dirname(stack.last) == stack.last # dirname('.') == '.'
- stack.push File.dirname(stack.last)
- end
- stack.reverse_each do |rel_path|
- svn_path = destination_path(rel_path)
- system("svn add -N #{svn_path}") unless File.directory?(File.join(svn_path, '.svn'))
- end
- end
- end
- end
- end
+ # Subversion doesn't do path adds, so we need to add
+ # each directory individually.
+ # So stack up the directory tree and add the paths to
+ # subversion in order without recursion.
+ if options[:svn]
+ stack=[relative_path]
+ until File.dirname(stack.last) == stack.last # dirname('.') == '.'
+ stack.push File.dirname(stack.last)
+ end
+ stack.reverse_each do |rel_path|
+ svn_path = destination_path(rel_path)
+ system("svn add -N #{svn_path}") unless File.directory?(File.join(svn_path, '.svn'))
+ end
+ end
+ end
+ end
+ end
# Display a README.
def readme(*relative_sources)