Skip to content

Commit

Permalink
Fixes #32014 - Expose Shellhooks as a proxy feature (#25)
Browse files Browse the repository at this point in the history
* Fixes #32014 - Expose Shellhooks as a proxy feature

* Fixes #32014 - Make rubocop happy

* Fixes #32014 - Make rubocop happy, vol. 2
  • Loading branch information
adamruzicka authored Mar 8, 2021
1 parent 8dd5f6f commit 4de6e83
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions db/seeds.d/62_shellhooks_proxy_feature.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# frozen_string_literal: true

proxy_feature = Feature.where(name: 'Shellhooks').first_or_create
return unless proxy_feature.nil? || proxy_feature.errors.any?

raise "Unable to create proxy feature: #{format_errors proxy_feature}"

0 comments on commit 4de6e83

Please sign in to comment.