File: info_service.rb

package info (click to toggle)
puppet-agent 7.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 19,092 kB
  • sloc: ruby: 245,074; sh: 456; makefile: 38; xml: 33
file content (26 lines) | stat: -rw-r--r-- 991 bytes parent folder | download
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

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