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-2.0.7 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-4.0.1 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-4.0.0 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-3.0.6 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-2.0.6 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-2.0.5 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-3.0.5 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-3.0.4 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-2.0.4 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-3.0.3 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-3.0.2 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-2.0.3 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-3.0.1 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-2.0.2 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-2.0.0 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-1.0.5 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-1.0.4 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-2.0.0.alpha.2 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-1.0.3 db/seeds.d/111_puppet_proxy_feature.rb
foreman_puppet-1.0.2 db/seeds.d/111_puppet_proxy_feature.rb