Skip to content

Commit

Permalink
Run find/rename commands inside the app directory
Browse files Browse the repository at this point in the history
  • Loading branch information
timriley committed Dec 30, 2015
1 parent af32ee1 commit b92cadd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/raygun/raygun.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ def rename_new_app
}.each do |proto_name, new_name|
shell "find . -type f -print | xargs #{sed_i} 's/#{proto_name}/#{new_name}/g'"
end
end

%w(d f).each do |find_type|
shell "find . -depth -type #{find_type} -name '*app_prototype*' -exec bash -c 'mv $0 ${0/app_prototype/#{snake_name}}' {} \\;"
%w(d f).each do |find_type|
shell "find . -depth -type #{find_type} -name '*app_prototype*' -exec bash -c 'mv $0 ${0/app_prototype/#{snake_name}}' {} \\;"
end
end
end

Expand Down

0 comments on commit b92cadd

Please sign in to comment.