This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/macros.rubygems b/macros.rubygems | |
index 8167e3c..2c00ae8 100644 | |
--- a/macros.rubygems | |
+++ b/macros.rubygems | |
@@ -146,7 +146,7 @@ unset -v gemspec_remove_dep_script \ | |
read -d '' gemspec_add_file_script << 'EOR' || : \ | |
gemspec_file = '%{-s*}%{!?-s:%{_builddir}/%{gem_name}-%{version}.gemspec}' \ | |
\ | |
- abort if 1 < ( 0 %{?-t:+1} %{?-r:+1} ) \ | |
+ abort("Use only one option at a time.") if "%{?-t}%{?-r}" == "-t-r" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# ./clusterup.sh [--pretend|--clean] [WD [UR [AR]]] | |
# --pretend dry-run | |
# --clean remove previous instance | |
# | |
# Optional | |
# WD working (base) directory | |
# UR openshift url | |
# AR additional args |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# ./getocstatus.sh [interval] | |
# | |
i="${1:-10}" | |
main () { | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# | |
# $ ./ruby-paralell echo 2 test <<EOLX | |
# first | |
# second | |
# third | |
# EOL | |
# [2192]+ echo first test | |
# [2193]+ echo second test | |
# first test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Run arbitrary commands on multiple folders or prefixed (interactive) | |
# | |
# ./icom [options] [command] | |
# -c clear before every command | |
# -d debug output | |
# -f [dirs] list folders (args for input for `ls -d`) | |
# | |
# Examples: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Packages installed: | |
- vagrant-2.2.6-1.fc32.1.noarch | |
- vagrant-libvirt-0.0.45-5.fc30.noarch | |
- ruby-2.6.5-124.fc32.x86_64 | |
- rubygems-3.0.3-124.fc32.noarch | |
- rubygem-net-ssh-5.1.0-2.fc31.noarch | |
- rubygem-i18n-1.7.0-1.fc32.noarch | |
- rubygem-childprocess-1.0.1-4.fc31.noarch | |
- rubygem-ruby-libvirt-0.7.1-6.fc31.x86_64 | |
- rubygem-fog-core-2.1.2-3.fc32.noarch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ plans/example.fmf | |
summary: | |
Basic smoke test | |
discover: | |
how: fmf | |
prepare: | |
script: dnf install -y ruby | |
provision: | |
how: remote | |
host: 10.0.138.95 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# created using `tmt init --base` and then edited | |
# same test as example 1, fixed password, with --debug | |
# example 1: https://gist.github.com/pvalena/b7a49d19a423ffb7e44ca12c41a508dc | |
$ tmt run --debug | |
/var/tmp/tmt/run-001 | |
Found 1 plan. | |
/plans/example | |
summary: Basic smoke test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tmt run --debug | |
/var/tmp/tmt/run-004 | |
Found 1 plan. | |
/ci | |
how: prepare | |
name: one | |
how: shell | |
Read file '/var/tmp/tmt/run-004/ci/discover/status.txt'. | |
Write file '/var/tmp/tmt/run-004/ci/discover/status.txt'. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2019-11-22T12:51:41-02:00 | |
/var/tmp/tmt/run-012 | |
Found 1 plan. | |
/ci | |
how: prepare | |
how: install | |
path: https://koji.fedoraproject.org/koji/buildinfo?buildID=1395975 | |
name: one |
OlderNewer