y10k | Automate your Yum package mirrors with ease
kandi X-RAY | y10k Summary
kandi X-RAY | y10k Summary
y10k is a tool to deploy Yum/RPM repositories and mirrors in your local environment using settings described in a INI formatted Yumfile. It is a wrapper for reposync and createrepo but takes the hard work out of writing shell scripts for each of your mirrors. It also provides an abstraction to ease management with configuration management tools like Puppet and Chef. What about Pulp/Satellite/Other? I wanted a cron job that syncronizes my repos with the upstreams into a folder shared in Apache/nginx. I don't want to deploy a database, server, agents, configure channel registrations, etc. etc. y10k is inspired by tools such as Puppet's R10K and Ruby's Bundler. Hey cool there's documentation. Oh, and you can download y10k precompiled binaries.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- LoadYumfile from a file
- main is the main entry point .
- HealthCheck performs a health check
- Exec runs the command with the given arguments .
- ActionYumfileSync synchronously synchronizes a yumfile
- Sync synchronizes the given repositories .
- Log a message with severity category .
- Errorf logs an error message if logger is nil .
- strToBool converts a string to a boolean .
- InitLogFile initializes log file
y10k Key Features
y10k Examples and Code Snippets
Community Discussions
Trending Discussions on y10k
QUESTION
While writing unit tests for some date helpers i stumbled across a particular behaviour of DateTimeFormatter
that i would like to understand how to get around.
When outputting years >9999, it always adds a plus sign in front of the year number. Some quick code to illustrate this:
...ANSWER
Answered 2021-Sep-22 at 03:27ISO 8601 does permit this year format. From Wikipedia:
To represent years before 0000 or after 9999, the standard also permits the expansion of the year representation but only by prior agreement between the sender and the receiver. An expanded year representation [±YYYYY] must have an agreed-upon number of extra year digits beyond the four-digit minimum, and it must be prefixed with a + or − sign instead of the more common AD/BC (or CE/BCE) notation;
However, since it only permits this "by prior agreement between the sender and the receiver", it is quite strange that adding the sign is the default behaviour of LocalDate.toString
.
According to the docs:
Year: The count of letters determines the minimum field width below which padding is used. If the count of letters is two, then a reduced two digit form is used. For printing, this outputs the rightmost two digits. For parsing, this will parse using the base value of 2000, resulting in a year within the range 2000 to 2099 inclusive. If the count of letters is less than four (but not two), then the sign is only output for negative years as per
SignStyle.NORMAL
. Otherwise, the sign is output if the pad width is exceeded, as perSignStyle.EXCEEDS_PAD
.
So if you don't want the sign, you can use 3 "y"s, or just 1 "y", since 3 and 1 are both "less than four (but not two)".
Also, since "y" means "year of era", there won't be any negative years, so you don't need to worry about it outputting a sign for negative years either.
Example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install y10k
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page