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
#!/usr/bin/env ruby | |
# Using this script as your post-receive hook will update mirrors using git | |
# push --mirror. To make this work you have to ensure that access is taken | |
# care of (for example by setting up .ssh/config with an SSH key for the | |
# user that runs the hook). | |
# | |
# To use this script populate /home/git/git-mirrors.yml with YAML like so: | |
# --- | |
# user/repo1.git: |
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
Vagrant.configure("2") do |config| | |
# Enable SSH agent forwarding, by running the ensure_ssh_auth_sock script on its own the following scripts have their environment setup properly | |
config.ssh.forward_agent = true | |
config.vm.provision :shell, :path => File.join(File.dirname(__FILE__), "scripts", "ensure_ssh_auth_sock") | |
# Grab my dotfiles and set them up | |
config.vm.synced_folder File.expand_path("~/.dotfiles"), "/home/vagrant/.dotfiles" | |
config.vm.provision :shell, :path => File.join(File.dirname(__FILE__), "scripts", "mkremer") | |
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
require_relative 'test_helper' | |
class TestMe | |
end | |
module TestModule | |
def setup | |
puts "This is the setup method" | |
end | |
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
class Animal | |
def initialize(species) | |
@species = species | |
end | |
def species | |
@species | |
end | |
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
class Dog | |
def bark | |
puts "Woof" | |
end | |
end | |
class Dog | |
def name=(name) | |
@name = name | |
end |