Skip to content

Commit de149f2

Browse files
authored
Merge pull request #365 from Firstyear/20220810-update-readme
Update readme
2 parents d3b80a8 + 53f94b6 commit de149f2

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,47 @@ old Perl components and the new Ruby ones (grouped on the namespace `Y2Users`) a
2626
in every operation. Apart from the mentioned documents, the `doc` directory contains several files
2727
describing how both the old Perl and the new Ruby components work and the correspondences between
2828
them.
29+
30+
# Development
31+
32+
You need to prepare your environment with:
33+
34+
```
35+
ruby_version=$(ruby -e "puts RbConfig::CONFIG['ruby_version']")
36+
zypper install -C "rubygem(ruby:$ruby_version:yast-rake)"
37+
zypper install -C "rubygem(ruby:$ruby_version:rspec)"
38+
zypper install git yast2-devtools yast2-testsuite cracklib perl-Digest-SHA1 perl-X500-DN perl-gettext yast2-security yast2-perl-bindings yast2-ldap yast2-pam
39+
```
40+
41+
You can then run the auth-server module with:
42+
43+
```
44+
rake run
45+
rake run[module name]
46+
```
47+
48+
# Tests
49+
50+
```
51+
rake test:unit
52+
```
53+
54+
# Logs
55+
56+
If you are running as a non-root user, the logs are located in:
57+
58+
```
59+
~/.y2log
60+
```
61+
62+
If you are running as root, these logs are in:
63+
64+
```
65+
/var/log/YaST2/y2log
66+
```
67+
68+
For more detailed logging, you are able to execute YaST with debugging environment variables:
69+
70+
```
71+
Y2DEBUG=1 rake run[module name]
72+
```

0 commit comments

Comments
 (0)