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".freeze
- TARGETS_FILE =
Targets definition
File.("../../../data/targets.yml", __FILE__)
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
27 28 29 |
# File 'lib/libyui/tasks.rb', line 27 def self.configuration(&block) ::Packaging.configuration(&block) end |
.submit_to(target, file = TARGETS_FILE) ⇒ Object
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/libyui/tasks.rb', line 31 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 |