Sha256: 0f784333a5949149fadcca0edae21990c76ebfb963509430b72f6aacbf3bfaf5

Contents?: true

Size: 585 Bytes

Versions: 22

Compression:

Stored size: 585 Bytes

Contents

# frozen_string_literal: true

desc 'Create a fact template for the specified arguments'
task :create_fact, [:os, :fact_name] do |_, args|
  require_relative 'fact_generator/fact_creator'

  abort 'Usage: rake \'create_facts[os,fact_name]\'' if !args[:os] || !args[:fact_name]

  fact_creator = FactCreator.new
  fact_creator.create_fact(args[:os], args[:fact_name])
end

desc 'Create one or multiple facts by reading descriptions from facts.json'
task :create_facts do
  require_relative 'fact_generator/fact_creator'

  fact_creator = FactCreator.new
  fact_creator.create_facts
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
facter-4.0.29 tasks/create_fact.rake
facter-4.0.28 tasks/create_fact.rake
facter-4.0.26 tasks/create_fact.rake
facter-4.0.25 tasks/create_fact.rake
facter-4.0.24 tasks/create_fact.rake
facter-4.0.23 tasks/create_fact.rake
facter-4.0.22 tasks/create_fact.rake
facter-4.0.21 tasks/create_fact.rake
facter-4.0.20 tasks/create_fact.rake
facter-4.0.19 tasks/create_fact.rake
facter-4.0.18 tasks/create_fact.rake
facter-4.0.17 tasks/create_fact.rake
facter-4.0.16 tasks/create_fact.rake
facter-4.0.15 tasks/create_fact.rake
facter-4.0.14 tasks/create_fact.rake
facter-4.0.13 tasks/create_fact.rake
facter-4.0.12 tasks/create_fact.rake
facter-4.0.11 tasks/create_fact.rake
facter-4.0.10.pre tasks/create_fact.rake
facter-4.0.9.pre tasks/create_fact.rake