This file contains 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
require 'csv' | |
require 'optparse' | |
require 'open-uri' | |
options = { | |
file: nil, | |
column_index: nil | |
} | |
parser = OptionParser.new do |opts| |
This file contains 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
module BookingExperts | |
module HasRoles | |
ROLES = { | |
backend: %w[Ruby Rails Postgres], | |
full_stack: %w[Ruby Rails Postgres React Javascript], | |
dev_ops: %w[Ruby Rails Postgres AWS Redis Elasticsearch], | |
product_design: %w[Sketch] | |
} | |
ROLES.each do |role, basic_tools| |
This file contains 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
module BookingExperts | |
class Team | |
def initialize | |
@team = [] | |
end | |
def self.build(&block) | |
new.tap do |team| | |
team.instance_eval(&block) | |
end |
This file contains 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
files: | |
"/opt/elasticbeanstalk/support/conf/shoryuken.conf": | |
mode: "000755" | |
content: | | |
description "Elastic Beanstalk Shoryuken Upstart Manager" | |
start on runlevel [2345] | |
stop on runlevel [06] | |
# explained above | |
respawn | |
respawn limit 3 30 |
This file contains 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
namespace :translator do | |
desc "Export missing translations for a specific locale" | |
task :export_keys => :environment do | |
from = ENV['FROM'] | |
to = ENV['TO'] | |
if from.present? and to.present? | |
translator = Translator.new( | |
from: from.to_sym, | |
to: to.to_sym | |
) |