one dot oh
This commit is contained in:
parent
f5cbb66bc6
commit
f54871efa0
35 changed files with 64 additions and 52 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,10 +1,12 @@
|
||||||
/.bundle
|
/.bundle
|
||||||
/.librarian
|
/.librarian
|
||||||
/.ruby-version
|
/.ruby-version
|
||||||
|
/.snapshot
|
||||||
/.tmp
|
/.tmp
|
||||||
/bin
|
/bin
|
||||||
/config/local.rb
|
/config/local.rb
|
||||||
/log
|
/log
|
||||||
|
/tmp
|
||||||
/shared/*
|
/shared/*
|
||||||
!/shared/README.md
|
!/shared/README.md
|
||||||
/tmp
|
/vendor/gems/
|
||||||
|
|
3
Gemfile
3
Gemfile
|
@ -1,6 +1,7 @@
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
gem "boxen", "0.7.3"
|
gem "boxen", "~> 1.0"
|
||||||
|
gem "open4", "~> 1.3"
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
gem "aws-sdk"
|
gem "aws-sdk"
|
||||||
|
|
13
Gemfile.lock
13
Gemfile.lock
|
@ -7,11 +7,11 @@ GEM
|
||||||
json (~> 1.4)
|
json (~> 1.4)
|
||||||
nokogiri (>= 1.4.4)
|
nokogiri (>= 1.4.4)
|
||||||
uuidtools (~> 2.1)
|
uuidtools (~> 2.1)
|
||||||
boxen (0.7.3)
|
boxen (1.0.0)
|
||||||
ansi (~> 1.4)
|
ansi (~> 1.4)
|
||||||
hiera (~> 1.0.0)
|
hiera (~> 1.0.0)
|
||||||
highline (~> 1.6)
|
highline (~> 1.6)
|
||||||
json_pure (~> 1.7)
|
json_pure (>= 1.7.7, < 2.0)
|
||||||
librarian-puppet (~> 0.9)
|
librarian-puppet (~> 0.9)
|
||||||
octokit (~> 1.15)
|
octokit (~> 1.15)
|
||||||
puppet (~> 3.0)
|
puppet (~> 3.0)
|
||||||
|
@ -26,11 +26,10 @@ GEM
|
||||||
highline (1.6.15)
|
highline (1.6.15)
|
||||||
json (1.7.7)
|
json (1.7.7)
|
||||||
json_pure (1.7.7)
|
json_pure (1.7.7)
|
||||||
librarian-puppet (0.9.7)
|
librarian-puppet (0.9.8)
|
||||||
json
|
json
|
||||||
puppet
|
|
||||||
thor (~> 0.15)
|
thor (~> 0.15)
|
||||||
multi_json (1.6.0)
|
multi_json (1.6.1)
|
||||||
multipart-post (1.1.5)
|
multipart-post (1.1.5)
|
||||||
net-ssh (2.6.5)
|
net-ssh (2.6.5)
|
||||||
netrc (0.7.7)
|
netrc (0.7.7)
|
||||||
|
@ -42,6 +41,7 @@ GEM
|
||||||
hashie (~> 1.2)
|
hashie (~> 1.2)
|
||||||
multi_json (~> 1.3)
|
multi_json (~> 1.3)
|
||||||
netrc (~> 0.7.7)
|
netrc (~> 0.7.7)
|
||||||
|
open4 (1.3.0)
|
||||||
puppet (3.1.0)
|
puppet (3.1.0)
|
||||||
facter (~> 1.6)
|
facter (~> 1.6)
|
||||||
hiera (~> 1.0)
|
hiera (~> 1.0)
|
||||||
|
@ -58,6 +58,7 @@ PLATFORMS
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
aws-sdk
|
aws-sdk
|
||||||
boxen (= 0.7.3)
|
boxen (~> 1.0)
|
||||||
net-ssh
|
net-ssh
|
||||||
|
open4 (~> 1.3)
|
||||||
rbvmomi
|
rbvmomi
|
||||||
|
|
22
Puppetfile
22
Puppetfile
|
@ -16,23 +16,23 @@ end
|
||||||
# Includes many of our custom types and providers, as well as global
|
# Includes many of our custom types and providers, as well as global
|
||||||
# config. Required.
|
# config. Required.
|
||||||
|
|
||||||
github "boxen", "0.2.4"
|
github "boxen", "1.0.0"
|
||||||
|
|
||||||
# Core modules for a basic development environment. You can replace
|
# Core modules for a basic development environment. You can replace
|
||||||
# some/most of these if you want, but it's not recommended.
|
# some/most of these if you want, but it's not recommended.
|
||||||
|
|
||||||
github "dnsmasq", "0.2.1"
|
github "dnsmasq", "1.0.0"
|
||||||
github "gcc", "0.0.2"
|
github "gcc", "1.0.0"
|
||||||
github "git", "0.1.0"
|
github "git", "1.0.0"
|
||||||
github "homebrew", "0.3.2"
|
github "homebrew", "1.0.0"
|
||||||
github "hub", "0.0.1"
|
github "hub", "1.0.0"
|
||||||
github "inifile", "0.9.0", :repo => "cprice-puppet/puppetlabs-inifile"
|
github "inifile", "0.9.0", :repo => "cprice-puppet/puppetlabs-inifile"
|
||||||
github "nginx", "0.2.1"
|
github "nginx", "1.0.0"
|
||||||
github "nodejs", "0.0.2"
|
github "nodejs", "1.0.0"
|
||||||
github "nvm", "0.0.5"
|
github "nvm", "1.0.0"
|
||||||
github "ruby", "0.7.1"
|
github "ruby", "1.0.0"
|
||||||
github "stdlib", "3.0.0", :repo => "puppetlabs/puppetlabs-stdlib"
|
github "stdlib", "3.0.0", :repo => "puppetlabs/puppetlabs-stdlib"
|
||||||
github "sudo", "0.0.1"
|
github "sudo", "1.0.0"
|
||||||
|
|
||||||
# Optional/custom modules. There are tons available at
|
# Optional/custom modules. There are tons available at
|
||||||
# https://github.com/boxen.
|
# https://github.com/boxen.
|
||||||
|
|
|
@ -1,57 +1,57 @@
|
||||||
GITHUBTARBALL
|
GITHUBTARBALL
|
||||||
remote: boxen/puppet-boxen
|
remote: boxen/puppet-boxen
|
||||||
specs:
|
specs:
|
||||||
boxen (0.2.4)
|
boxen (1.0.0)
|
||||||
|
|
||||||
GITHUBTARBALL
|
GITHUBTARBALL
|
||||||
remote: boxen/puppet-dnsmasq
|
remote: boxen/puppet-dnsmasq
|
||||||
specs:
|
specs:
|
||||||
dnsmasq (0.2.1)
|
dnsmasq (1.0.0)
|
||||||
|
|
||||||
GITHUBTARBALL
|
GITHUBTARBALL
|
||||||
remote: boxen/puppet-gcc
|
remote: boxen/puppet-gcc
|
||||||
specs:
|
specs:
|
||||||
gcc (0.0.2)
|
gcc (1.0.0)
|
||||||
|
|
||||||
GITHUBTARBALL
|
GITHUBTARBALL
|
||||||
remote: boxen/puppet-git
|
remote: boxen/puppet-git
|
||||||
specs:
|
specs:
|
||||||
git (0.1.0)
|
git (1.0.0)
|
||||||
|
|
||||||
GITHUBTARBALL
|
GITHUBTARBALL
|
||||||
remote: boxen/puppet-homebrew
|
remote: boxen/puppet-homebrew
|
||||||
specs:
|
specs:
|
||||||
homebrew (0.3.2)
|
homebrew (1.0.0)
|
||||||
|
|
||||||
GITHUBTARBALL
|
GITHUBTARBALL
|
||||||
remote: boxen/puppet-hub
|
remote: boxen/puppet-hub
|
||||||
specs:
|
specs:
|
||||||
hub (0.0.1)
|
hub (1.0.0)
|
||||||
|
|
||||||
GITHUBTARBALL
|
GITHUBTARBALL
|
||||||
remote: boxen/puppet-nginx
|
remote: boxen/puppet-nginx
|
||||||
specs:
|
specs:
|
||||||
nginx (0.2.1)
|
nginx (1.0.0)
|
||||||
|
|
||||||
GITHUBTARBALL
|
GITHUBTARBALL
|
||||||
remote: boxen/puppet-nodejs
|
remote: boxen/puppet-nodejs
|
||||||
specs:
|
specs:
|
||||||
nodejs (0.0.2)
|
nodejs (1.0.0)
|
||||||
|
|
||||||
GITHUBTARBALL
|
GITHUBTARBALL
|
||||||
remote: boxen/puppet-nvm
|
remote: boxen/puppet-nvm
|
||||||
specs:
|
specs:
|
||||||
nvm (0.0.5)
|
nvm (1.0.0)
|
||||||
|
|
||||||
GITHUBTARBALL
|
GITHUBTARBALL
|
||||||
remote: boxen/puppet-ruby
|
remote: boxen/puppet-ruby
|
||||||
specs:
|
specs:
|
||||||
ruby (0.7.1)
|
ruby (1.0.0)
|
||||||
|
|
||||||
GITHUBTARBALL
|
GITHUBTARBALL
|
||||||
remote: boxen/puppet-sudo
|
remote: boxen/puppet-sudo
|
||||||
specs:
|
specs:
|
||||||
sudo (0.0.1)
|
sudo (1.0.0)
|
||||||
|
|
||||||
GITHUBTARBALL
|
GITHUBTARBALL
|
||||||
remote: cprice-puppet/puppetlabs-inifile
|
remote: cprice-puppet/puppetlabs-inifile
|
||||||
|
@ -64,17 +64,17 @@ GITHUBTARBALL
|
||||||
stdlib (3.0.0)
|
stdlib (3.0.0)
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
boxen (= 0.2.4)
|
boxen (= 1.0.0)
|
||||||
dnsmasq (= 0.2.1)
|
dnsmasq (= 1.0.0)
|
||||||
gcc (= 0.0.2)
|
gcc (= 1.0.0)
|
||||||
git (= 0.1.0)
|
git (= 1.0.0)
|
||||||
homebrew (= 0.3.2)
|
homebrew (= 1.0.0)
|
||||||
hub (= 0.0.1)
|
hub (= 1.0.0)
|
||||||
inifile (= 0.9.0)
|
inifile (= 0.9.0)
|
||||||
nginx (= 0.2.1)
|
nginx (= 1.0.0)
|
||||||
nodejs (= 0.0.2)
|
nodejs (= 1.0.0)
|
||||||
nvm (= 0.0.5)
|
nvm (= 1.0.0)
|
||||||
ruby (= 0.7.1)
|
ruby (= 1.0.0)
|
||||||
stdlib (= 3.0.0)
|
stdlib (= 3.0.0)
|
||||||
sudo (= 0.0.1)
|
sudo (= 1.0.0)
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,11 @@
|
||||||
#!/usr/bin/ruby
|
#!/usr/bin/ruby
|
||||||
# Provide git credentials using Boxen's config.
|
# Provide git credentials using Boxen's config.
|
||||||
|
|
||||||
unless command = ARGV.shift
|
unless command = ARGV[0]
|
||||||
this = File.basename $0
|
this = File.basename $0
|
||||||
abort "Usage: #{this} <get|store|erase>"
|
abort "Usage: #{this} <get|store|erase>"
|
||||||
end
|
end
|
||||||
|
|
||||||
# We only support get.
|
|
||||||
|
|
||||||
exit 0 unless command == "get"
|
|
||||||
|
|
||||||
# Make sure we're looking for github.com stuff.
|
|
||||||
|
|
||||||
attrs = Hash[$stdin.read.split($/).map { |l| l.split("=") }]
|
|
||||||
exit 1 unless attrs["host"] == "github.com"
|
|
||||||
|
|
||||||
require "pathname"
|
require "pathname"
|
||||||
|
|
||||||
# Put us where we belong, in the root dir of our boxen repo.
|
# Put us where we belong, in the root dir of our boxen repo.
|
||||||
|
@ -29,10 +20,27 @@ ENV.keys.select { |k| /^BUNDLE_/i }.each { |k| ENV.delete k }
|
||||||
# Set up our local configuration, deps, and load path.
|
# Set up our local configuration, deps, and load path.
|
||||||
|
|
||||||
load "config/basic.rb"
|
load "config/basic.rb"
|
||||||
|
|
||||||
require "boxen/config"
|
require "boxen/config"
|
||||||
|
|
||||||
config = Boxen::Config.load
|
config = Boxen::Config.load
|
||||||
|
input = $stdin.read
|
||||||
|
attrs = Hash[input.split($/).map { |l| l.split("=") }]
|
||||||
|
|
||||||
|
if command != "get" || attrs["host"] != "github.com"
|
||||||
|
require "open4"
|
||||||
|
|
||||||
|
fallback = ENV["BOXEN_GIT_CREDENTIAL_FALLBACK"]
|
||||||
|
fallback ||= "#{config.homedir}/homebrew/bin/git-credential-osxkeychain"
|
||||||
|
|
||||||
|
status = Open4.popen4 fallback, *ARGV do |pid, stdin, stdout, stderr|
|
||||||
|
stdin.write input
|
||||||
|
stdin.puts
|
||||||
|
|
||||||
|
$stdout.write stdout.read
|
||||||
|
end
|
||||||
|
|
||||||
|
exit status.exitstatus
|
||||||
|
end
|
||||||
|
|
||||||
puts "username=#{config.login}"
|
puts "username=#{config.login}"
|
||||||
puts "password=#{config.password}"
|
puts "password=#{config.password}"
|
||||||
|
|
BIN
vendor/cache/boxen-0.7.3.gem
vendored
BIN
vendor/cache/boxen-0.7.3.gem
vendored
Binary file not shown.
BIN
vendor/cache/boxen-1.0.0.gem
vendored
Normal file
BIN
vendor/cache/boxen-1.0.0.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/librarian-puppet-0.9.7.gem
vendored
BIN
vendor/cache/librarian-puppet-0.9.7.gem
vendored
Binary file not shown.
BIN
vendor/cache/librarian-puppet-0.9.8.gem
vendored
Normal file
BIN
vendor/cache/librarian-puppet-0.9.8.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/multi_json-1.6.0.gem
vendored
BIN
vendor/cache/multi_json-1.6.0.gem
vendored
Binary file not shown.
BIN
vendor/cache/multi_json-1.6.1.gem
vendored
Normal file
BIN
vendor/cache/multi_json-1.6.1.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/open4-1.3.0.gem
vendored
Normal file
BIN
vendor/cache/open4-1.3.0.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-boxen-0.2.4.tar.gz
vendored
BIN
vendor/puppet/cache/boxen-puppet-boxen-0.2.4.tar.gz
vendored
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-boxen-1.0.0.tar.gz
vendored
Normal file
BIN
vendor/puppet/cache/boxen-puppet-boxen-1.0.0.tar.gz
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-dnsmasq-1.0.0.tar.gz
vendored
Normal file
BIN
vendor/puppet/cache/boxen-puppet-dnsmasq-1.0.0.tar.gz
vendored
Normal file
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-gcc-0.0.2.tar.gz
vendored
BIN
vendor/puppet/cache/boxen-puppet-gcc-0.0.2.tar.gz
vendored
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-gcc-1.0.0.tar.gz
vendored
Normal file
BIN
vendor/puppet/cache/boxen-puppet-gcc-1.0.0.tar.gz
vendored
Normal file
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-git-0.1.0.tar.gz
vendored
BIN
vendor/puppet/cache/boxen-puppet-git-0.1.0.tar.gz
vendored
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-git-1.0.0.tar.gz
vendored
Normal file
BIN
vendor/puppet/cache/boxen-puppet-git-1.0.0.tar.gz
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-homebrew-1.0.0.tar.gz
vendored
Normal file
BIN
vendor/puppet/cache/boxen-puppet-homebrew-1.0.0.tar.gz
vendored
Normal file
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-hub-0.0.1.tar.gz
vendored
BIN
vendor/puppet/cache/boxen-puppet-hub-0.0.1.tar.gz
vendored
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-hub-1.0.0.tar.gz
vendored
Normal file
BIN
vendor/puppet/cache/boxen-puppet-hub-1.0.0.tar.gz
vendored
Normal file
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-nginx-0.2.1.tar.gz
vendored
BIN
vendor/puppet/cache/boxen-puppet-nginx-0.2.1.tar.gz
vendored
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-nginx-1.0.0.tar.gz
vendored
Normal file
BIN
vendor/puppet/cache/boxen-puppet-nginx-1.0.0.tar.gz
vendored
Normal file
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-nodejs-0.0.2.tar.gz
vendored
BIN
vendor/puppet/cache/boxen-puppet-nodejs-0.0.2.tar.gz
vendored
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-nodejs-1.0.0.tar.gz
vendored
Normal file
BIN
vendor/puppet/cache/boxen-puppet-nodejs-1.0.0.tar.gz
vendored
Normal file
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-nvm-0.0.5.tar.gz
vendored
BIN
vendor/puppet/cache/boxen-puppet-nvm-0.0.5.tar.gz
vendored
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-nvm-1.0.0.tar.gz
vendored
Normal file
BIN
vendor/puppet/cache/boxen-puppet-nvm-1.0.0.tar.gz
vendored
Normal file
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-ruby-0.7.1.tar.gz
vendored
BIN
vendor/puppet/cache/boxen-puppet-ruby-0.7.1.tar.gz
vendored
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-ruby-1.0.0.tar.gz
vendored
Normal file
BIN
vendor/puppet/cache/boxen-puppet-ruby-1.0.0.tar.gz
vendored
Normal file
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-sudo-0.0.1.tar.gz
vendored
BIN
vendor/puppet/cache/boxen-puppet-sudo-0.0.1.tar.gz
vendored
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-sudo-1.0.0.tar.gz
vendored
Normal file
BIN
vendor/puppet/cache/boxen-puppet-sudo-1.0.0.tar.gz
vendored
Normal file
Binary file not shown.
Loading…
Reference in a new issue