Rake tasks to help with uniform handling of yast modules. It provides setup for packaging tasks and add yast specific tasks.
Create Rakefile with content:
Now lets check what it provides with
Update the latest part of version in spec file.
Runs all RSpec tests ending with _spec.rb or _test.rb.
Runs client with paths leading to git. Useful to testing module without installation.
Runs ruby console with paths leading to git and YaST environment.
Collect translatable strings and create
Check for common mistakes in translated texts.
Checks spelling in
*.html files. It uses a global custom dictionary
lib/tasks/spell.dict in this repository) and supports repository specific
spell.dict file in the repository root directory).
Note: The installed aspell English dictionary may differ in different products (esp. the Ubuntu dictionary used at Travis - a local check may pass, but it may later fail at Travis, be prepared for this...)
Note: You need to explicitly install
packages and the
raspell Ruby gem. (The reason is to decrease the dependencies
for the packages which do not use this task.)
These commands should work:
sudo zypper in aspell-devel aspell-en ruby-devel sudo gem install raspell
Yast::Tasks provides a method to change the configuration of the packaging
tasks. As it's just a proxy for
::Packaging.configuration, the same options
Yast::Tasks.configuration do |conf| conf.obs_api = "https://api.opensuse.org/" conf.obs_project = "YaST:openSUSE:42.1" end
To avoid duplication, Yast::Tasks also provides a method to set the whole configuration at once, just specifying the name of one of the available target definitions. For example, if you want to submit to SLE 12 Service Pack 1, you can do:
This method can receive, as a second parameter, the path to your own definitions if needed.
submit_to is not explicitly used, it will be read from the environment
YAST_SUBMIT. If that variable is not set,
:factory will be used.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request
This package is licensed under LGPL-2.1.