Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
Gemify configgin
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed May 8, 2017
1 parent 263e678 commit f1ddb70
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 94 deletions.
5 changes: 1 addition & 4 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
source 'https://rubygems.org'

gem 'bosh-template', '~> 1.3262.24.0'
gem 'rainbow', '~>2.0', '!=2.2.1'
gem 'deep_merge', '~> 1.0.1'
gem 'mustache', '~> 1.0'
gemspec

group :test do
gem 'rspec'
Expand Down
17 changes: 13 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
PATH
remote: .
specs:
configgin (0.1.0)
bosh-template (~> 1.3262.24.0)
deep_merge (~> 1.0.1)
mustache (~> 1.0)
rainbow (~> 2.0, != 2.2.1)

GEM
remote: https://rubygems.org/
specs:
Expand All @@ -11,6 +20,7 @@ GEM
ast (~> 2.2)
powerpack (0.1.1)
rainbow (2.1.0)
rake (10.4.2)
rspec (3.5.0)
rspec-core (~> 3.5.0)
rspec-expectations (~> 3.5.0)
Expand Down Expand Up @@ -38,10 +48,9 @@ PLATFORMS
ruby

DEPENDENCIES
bosh-template (~> 1.3262.24.0)
deep_merge (~> 1.0.1)
mustache (~> 1.0)
rainbow (~> 2.0, != 2.2.1)
bundler (~> 1.14)
configgin!
rake (~> 10.0)
rspec
rubocop

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lint:
${GIT_ROOT}/make/lint

dist:
${GIT_ROOT}/make/package
gem build ${GIT_ROOT}/configgin.gemspec

clean:
rm -rf output
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

12 changes: 1 addition & 11 deletions bin/configgin
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
#!/usr/bin/env ruby

ROOT_DIR = File.join(File.dirname(__FILE__), '..')

Dir.chdir ROOT_DIR do
require 'bundler/setup'
end

$LOAD_PATH.unshift(File.join(ROOT_DIR, 'lib'))

require 'cli'
require 'generate'
require 'environment_config_transmogrifier'
require_relative "../lib/configgin"

options = {}
parser = Cli.make_option_parser(options)
Expand Down
6 changes: 6 additions & 0 deletions bin/setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
set -vx

bundle install
29 changes: 29 additions & 0 deletions configgin.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'configgin/version'

Gem::Specification.new do |spec|
spec.name = "configgin"
spec.version = Configgin::VERSION
spec.authors = ["hpcloud"]

spec.summary = "A simple cli app in Ruby to generate configurations using BOSH ERB templates and a BOSH spec."
spec.description = "A simple cli app in Ruby to generate configurations using BOSH ERB templates and a BOSH spec, but also using configurations based on environment variables, processed using a set of templates."
spec.homepage = "https://github.com/hpcloud/configgin"

spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
end
spec.bindir = "bin"
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_development_dependency "bundler", "~> 1.14"
spec.add_development_dependency "rake", "~> 10.0"

spec.add_dependency 'bosh-template', '~> 1.3262.24.0'
spec.add_dependency 'rainbow', '~>2.0', '!=2.2.1'
spec.add_dependency 'deep_merge', '~> 1.0.1'
spec.add_dependency 'mustache', '~> 1.0'
end
3 changes: 3 additions & 0 deletions lib/configgin.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require 'cli'
require 'generate'
require 'environment_config_transmogrifier'
5 changes: 5 additions & 0 deletions lib/configgin/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module Configgin

VERSION = "0.12.0"

end
73 changes: 0 additions & 73 deletions make/package

This file was deleted.

0 comments on commit f1ddb70

Please sign in to comment.