tiller 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/tiller +4 -1
- data/examples/json/common.yaml +0 -2
- data/lib/tiller/defaults.rb +13 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c32c4ca4b4639f9805d818dc47918d843cca787c
|
4
|
+
data.tar.gz: 482b956bea0ca02af1c91079bbd3e49b04859e07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 866676d926a31d6987888aa8e258d14e71fe9ba2348cac6a28e83d2082bbd55fbd5ff1022d3166a2bfc80e793c071826e146494a2e3e88c9736551cc0a05e7cb
|
7
|
+
data.tar.gz: ac0d422c214bcf8cbcd48734fa38d181d8911fab8176bcd7e8a32e527d88153c867e96760e57c27550089ee74849ca2c85ec360843d953aa681fb69d90516d8a
|
data/bin/tiller
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
# didn't have an existing gem named after it!
|
5
5
|
# Mark Round <github@markround.com>
|
6
6
|
|
7
|
-
VERSION = '0.3.
|
7
|
+
VERSION = '0.3.2'
|
8
8
|
|
9
9
|
require 'erb'
|
10
10
|
require 'ostruct'
|
@@ -35,6 +35,9 @@ module Tiller
|
|
35
35
|
# Load the common YAML configuration file
|
36
36
|
config.merge!(YAML.load(open(File.join(config[:tiller_base], 'common.yaml'))))
|
37
37
|
|
38
|
+
# Set the environment if not already done through ENV or -e flag
|
39
|
+
config[:environment] = config['default_environment'] if config[:environment].nil?
|
40
|
+
|
38
41
|
if config[:verbose]
|
39
42
|
puts "Using configuration from #{config[:tiller_base]}"
|
40
43
|
puts "Using plugins from #{config[:tiller_lib]}/tiller"
|
data/examples/json/common.yaml
CHANGED
data/lib/tiller/defaults.rb
CHANGED
@@ -1,14 +1,18 @@
|
|
1
1
|
module Tiller
|
2
2
|
|
3
3
|
Defaults = {
|
4
|
-
:tiller_base
|
5
|
-
:tiller_lib
|
6
|
-
#
|
7
|
-
|
8
|
-
:
|
9
|
-
|
10
|
-
'
|
11
|
-
|
4
|
+
:tiller_base => (ENV['tiller_base'].nil?) ? '/etc/tiller' : ENV['tiller_base'],
|
5
|
+
:tiller_lib => (ENV['tiller_lib'].nil?) ? '/usr/local/lib' : ENV['tiller_lib'],
|
6
|
+
# If not specified in environment, leave it as nil, we'll pick it up later
|
7
|
+
# from the -e flag or set it to default_environment.
|
8
|
+
:environment => (ENV['environment'].nil?) ? nil : ENV['environment'],
|
9
|
+
# This can be overridden in common.yaml.
|
10
|
+
'default_environment' => 'production',
|
11
|
+
:no_exec => false,
|
12
|
+
:verbose => false,
|
13
|
+
'api_enable' => false,
|
14
|
+
'api_port' => 6275
|
12
15
|
}
|
13
16
|
|
14
|
-
end
|
17
|
+
end
|
18
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Round
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A tool to create configuration files in Docker containers from a variety
|
14
14
|
of sources. See https://github.com/markround/tiller for examples and documentation.
|