Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix error message if roswell key already exists

  • Loading branch information...
commit 1c70c3f20c04a67ba7087439a3e63360306ca786 1 parent e24f763
@ljfauscett ljfauscett authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  app/views/shared/_results.html.erb
  2. +3 −3 lib/tasks/setup.rake
View
2  app/views/shared/_results.html.erb
@@ -13,7 +13,7 @@
<% end %>
<% unless @licenses.empty? %>
-<h4>Software Licenses</h4>
+<h4>Licenses</h4>
<div class="licenses results">
<%= render :partial => 'shared/table', :locals => { :items => @licenses } %>
</div>
View
6 lib/tasks/setup.rake
@@ -33,9 +33,9 @@ def create_roswell_key
key_path = File.join(Rails.root, 'config/initializers/roswell_key.rb')
if File.exist? key_path
- puts "config/roswell_key.rb already exists"
+ puts "config/initializers/roswell_key.rb already exists"
else
- puts "Creating config/roswell_key.rb"
+ puts "Creating config/initializers/roswell_key.rb"
File.open(key_path, 'w') { |file| file.write("Roswell::Application.config.roswell_key = '#{SecureRandom.hex(64)}'") }
end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.