Sha256: 2f96804240e1878c5a6be598d799b2a440626648a7a695c7661bb223c9a371c7

Contents?: true

Size: 319 Bytes

Versions: 65

Compression:

Stored size: 319 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :ansible_role do
    sequence(:name) { |n| "ansible_role_#{n}" }
  end

  factory :host_ansible_role do
    position { nil }
    host
    ansible_role
  end

  factory :hostgroup_ansible_role do
    position { nil }
    hostgroup
    ansible_role
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
foreman_ansible-6.3.2 test/factories/ansible_roles.rb
foreman_ansible-6.3.1 test/factories/ansible_roles.rb
foreman_ansible-6.4.1 test/factories/ansible_roles.rb
foreman_ansible-6.4.0 test/factories/ansible_roles.rb
foreman_ansible-6.3.0 test/factories/ansible_roles.rb