File: info_service.rb

package info (click to toggle)
puppet-agent 8.10.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,404 kB
  • sloc: ruby: 286,820; sh: 492; xml: 116; makefile: 88; cs: 68
file content (27 lines) | stat: -rw-r--r-- 1,021 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# frozen_string_literal: true

module Puppet::InfoService
  require_relative 'info_service/class_information_service'
  require_relative 'info_service/task_information_service'
  require_relative 'info_service/plan_information_service'

  def self.classes_per_environment(env_file_hash)
    Puppet::InfoService::ClassInformationService.new.classes_per_environment(env_file_hash)
  end

  def self.tasks_per_environment(environment_name)
    Puppet::InfoService::TaskInformationService.tasks_per_environment(environment_name)
  end

  def self.task_data(environment_name, module_name, task_name)
    Puppet::InfoService::TaskInformationService.task_data(environment_name, module_name, task_name)
  end

  def self.plans_per_environment(environment_name)
    Puppet::InfoService::PlanInformationService.plans_per_environment(environment_name)
  end

  def self.plan_data(environment_name, module_name, plan_name)
    Puppet::InfoService::PlanInformationService.plan_data(environment_name, module_name, plan_name)
  end
end