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
variable "workspaces" { | |
type = set(string) | |
} | |
variable "common_environment_variables" { | |
type = map(string) | |
} | |
provider "tfe" { | |
hostname = "app.terraform.io" # Terraform Cloud |
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
--- | |
- hosts: webservers | |
become_user: root | |
become: yes | |
tasks: | |
- name: gather facts from web servers | |
amazon.aws.ec2_metadata_facts: | |
- hosts: loadbalancers | |
become_user: root |
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
source 'https://rubygems.org/' | |
gem 'sinatra', '2.1.0' | |
gem 'sinatra-activerecord', '2.0.21' | |
gem 'sqlite3', '1.4.1' | |
gem 'capybara', '3.34.0' | |
gem 'cucumber', '5.2.0' | |
gem 'rake', '12.3.3' | |
gem 'rspec-expectations', '3.10.0' |
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
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: docker:18.06.1-ce-git | |
steps: | |
- checkout | |
- setup_remote_docker | |
- run: | |
name: Build application Docker image |
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
it 'correctly captures output' do | |
allow(plugin).to receive(:shell_out).with('apachectl -t -D DUMP_MODULES').and_return(double(stdout: 'OUTPUT')) | |
expect(plugin_attribute('apache/modules')).to eq('OUTPUT') | |
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
sudo rpm -Uvh https://packages.chef.io/files/stable/chefdk/2.0.28/el/7/chefdk-2.0.28-1.el7.x86_64.rpm |
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
#!/bin/sh | |
# prevent adding of unencrypted files | |
if test $(git-crypt status | grep "WARNING" | wc -l) != 0 | |
then | |
echo "WARNING: There are unencrypted files in your staging area. Commit aborted!" | |
exit 1; | |
fi |
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
$ sudo apt-get install git-all libssl-dev | |
$ cd /tmp && wget https://github.com/AGWA/git-crypt/archive/0.5.0.zip | |
$ unzip 0.5.0.zip && cd git-crypt-0.5.0/ | |
$ make && sudo make install |
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
### Keybase proof | |
I hereby claim: | |
* I am jaybrueder on github. | |
* I am jaybrueder (https://keybase.io/jaybrueder) on keybase. | |
* I have a public key whose fingerprint is EDE7 EE48 E434 B972 402F CFB9 99E0 917B 0ACF 5646 | |
To claim this, I am signing this object: |
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
ENV['RACK_ENV'] = 'test' | |
require File.join(File.dirname(__FILE__), '..', 'app.rb') | |
require 'rack/test' | |
def app | |
Sinatra::Application | |
end | |
RSpec.configure do |config| |
NewerOlder