I hereby claim:
- I am plukevdh on github.
- I am plukevdh (https://keybase.io/plukevdh) on keybase.
- I have a public key ASAUM0TdYG6iD3RQxK29SEzkPqj18SAcJszaiNe1uZVCzQo
To claim this, I am signing this object:
| require 'aws-sdk' | |
| Aws.config.update({ | |
| region: "us-east-1", | |
| credentials: Aws::SharedCredentials.new(profile_name: "...") | |
| }) | |
| PRESET_ID = "..." | |
| PIPELINE_ID = "..." |
I hereby claim:
To claim this, I am signing this object:
| def envs = [ | |
| [env: "stage", region: "us-east-1"] | |
| ] | |
| stage("Plan") { | |
| def planJobs = [:] | |
| for(int i = 0; i < envs.size(); i++) { | |
| def details = envs.get(i) |
| // Example envs, could be one of the following | |
| def defaultEnvs = [ | |
| [env: "stage", region: "us-east-1"], | |
| [env: "prod", region: "us-east-1"] | |
| ] | |
| // Or | |
| def defaultEnvs = [ |
| const isObject = R.compose(R.equals('Object'), R.type); | |
| const isScalar = R.compose(R.not, R.either(isObject, R.isArrayLike), R.last, R.values); |
| require 'digest' | |
| require 'fileutils' | |
| EXCLUDES = %w{.rb .md} | |
| def exclude?(path) | |
| EXCLUDES.any? {|pattern| path.end_with? pattern } | |
| end | |
| def md5_name(path) |
| import R from 'ramda' | |
| const isObject = R.compose(R.equals('Object'), R.type); | |
| const allAreObjects = R.compose(R.all(isObject), R.values); | |
| const hasLeft = R.has('left'); | |
| const hasRight = R.has('right'); | |
| const hasBoth = R.both(hasLeft, hasRight); | |
| const isEqual = R.both(hasBoth, R.compose(R.apply(R.equals), R.values)); | |
| const markAdded = R.compose(R.append(undefined), R.values); |
| const groupByKey = R.compose( | |
| R.groupBy(R.head), | |
| R.apply(R.concat), | |
| R.map(R.toPairs) | |
| ) |
| def abortable_run(cmd) | |
| abort("Failed with #{$?.exitstatus}") unless system(cmd) | |
| end |
| class Processor | |
| def plus_two(arg) | |
| arg + 2 | |
| end | |
| end | |
| class Runner | |
| def block_run(arg, &block) | |
| yield arg | |
| end |