Module: Libyui::Tasks
- Defined in:
- lib/libyui/tasks.rb
Overview
Facilities to write Libyui related rake tasks.
Defined Under Namespace
Modules: Helpers
Constant Summary collapse
- VERSION_CMAKE =
Name of the CMake version file
"VERSION.cmake"
- TARGETS_FILE =
Targets definition
File.("../../data/targets.yml", __dir__)
Class Method Summary collapse
-
.configuration(&block) ⇒ Object
Wrapper to set up packaging tasks.
- .submit_to(target, file = TARGETS_FILE) ⇒ Object
Class Method Details
.configuration(&block) ⇒ Object
Wrapper to set up packaging tasks
29 30 31 |
# File 'lib/libyui/tasks.rb', line 29 def self.configuration(&block) ::Packaging.configuration(&block) end |
.submit_to(target, file = TARGETS_FILE) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/libyui/tasks.rb', line 33 def self.submit_to(target, file = TARGETS_FILE) targets = YAML.load_file(file) config = targets[target] raise "Not configuration found for #{target}" if config.nil? Libyui::Tasks.configuration do |conf| config.each do |meth, val| conf.public_send("#{meth}=", val) end end end |