Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am blarshk on github.
  • I am blarshk (https://keybase.io/blarshk) on keybase.
  • I have a public key ASDIIr5OvHln9RhhCxMeZy6obJdfyBCdmOUD_X9m0wUcZgo

To claim this, I am signing this object:

@blarshk
blarshk / gilded_rose.rb
Created September 7, 2017 19:26
My take on the Gilded Rose refactoring kata
class Product
attr_reader :item
def initialize(item:)
@item = item
end
def update_quality
move_sale_date_closer
@blarshk
blarshk / deploy.rb
Created July 31, 2017 16:14
Headless Capistrano Deploy
set :branch, ENV.fetch("BRANCH", `git rev-parse --abbrev-ref HEAD`.chomp)
@blarshk
blarshk / .gitlab-ci.yml
Created July 31, 2017 16:11
Gitlab CD for deploying to Integration environments
.deploy_to_int: &deploy_to_int
stage: deploy
when: manual
script:
- eval $(ssh-agent)
- ssh-add ~/.ssh/id_rsa
- cap $CI_ENVIRONMENT_NAME deploy BRANCH=$CI_COMMIT_REF_NAME
deploy_to_int1:
<<: *deploy_to_int