Feature Name: (fill me in with a unique identity, myawesomefeature)
Type: (feature, enhancement)
Start Date: (fill me in with today's date, YYYY-MM-DD)
Author: (your names)
| #!/bin/bash | |
| # ===> Set these variables first | |
| branch="$GIT_BRANCH" | |
| # Example: "Jaskaranbir/MyRepo" | |
| repo_slug="$TRAVIS_REPO_SLUG" | |
| token="$GITHUB_TOKEN" | |
| version="$TRAVIS_TAG" | |
| # An automatic changelog generator |
requires
jqCLI
oc get namespaces -o json | jq '[.items[] | select((.metadata.name | startswith("openshift") | not) and (.metadata.name | startswith("kube-") | not) and .metadata.name != "default" and (true)) | .metadata.name ]'
| #!/usr/bin/env bash | |
| # | |
| # gh-dl-release! It works! | |
| # | |
| # This script downloads an asset from latest or specific Github release of a | |
| # private repo. Feel free to extract more of the variables into command line | |
| # parameters. | |
| # | |
| # PREREQUISITES | |
| # |
| /** | |
| * A monad to abstract dependencies in the code, see https://coderwall.com/p/kh_z5g | |
| */ | |
| object Reader { | |
| /** | |
| * an implicit to convert a function A => B in a Reader[A, B] | |
| */ | |
| implicit def reader[C, R](block: C => R): Reader[C, R] = Reader(block) |
| package com.github.masahitojp | |
| import org.kohsuke.args4j.CmdLineException | |
| import org.kohsuke.args4j.CmdLineParser | |
| import org.kohsuke.args4j.Option | |
| import grizzled.slf4j.Logger | |
| import scala.collection.JavaConversions._ | |
| import scala.util.control.Exception._ | |
| object Args4j { |