Sha256: a25782db0be078a7680c9bf6dad6c81ea13c142558c47f97b1d2c6aac5392029

Contents?: true

Size: 234 Bytes

Versions: 47

Compression:

Stored size: 234 Bytes

Contents

# frozen_string_literal: true

proxy_features = %w[Puppet]

proxy_features.each do |f_name|
  f = Feature.where(name: f_name).first_or_create
  raise "Unable to create proxy feature: #{format_errors f}" if f.nil? || f.errors.any?
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
foreman_puppet-8.0.0 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-6.4.0 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-7.0.0 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-6.3.0 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-6.2.0 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-6.1.1 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-5.1.3 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-6.1.0 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-6.0.1 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-6.0.0 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-5.1.2 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-4.1.1 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-5.1.1 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-5.1.0 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-4.1.0 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-4.0.4 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-5.0.0 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-4.0.3 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-4.0.2 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-3.0.7 db/seeds.d/111_puppet_proxy_feature.rb