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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 783e5f461315d6b6c76b7f1bdc6c8c907056c2fb
4
- data.tar.gz: cf893537c943b65c6ef30c1af5a86ed53eadf984
3
+ metadata.gz: c32c4ca4b4639f9805d818dc47918d843cca787c
4
+ data.tar.gz: 482b956bea0ca02af1c91079bbd3e49b04859e07
5
5
  SHA512:
6
- metadata.gz: 3d36202ffecd118009d50b7efcf908825207965ba62b1b53e8aef34c3c1b4f8187124510d6236ecf5a37223036500a0751c80badcd3e3faa8566d68b03d050fa
7
- data.tar.gz: 23ed8c7bd87be72c791fc8da4aa237932b44776540d82a555ce134c69d54f3259de7a8a355c6e0cb337af066a31f88687aa53e11555a5b820fe782db28cdb92c
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.1'
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"
@@ -4,5 +4,3 @@ data_sources:
4
4
  template_sources:
5
5
  - file
6
6
  exec: sleep 600
7
-
8
-
@@ -1,14 +1,18 @@
1
1
  module Tiller
2
2
 
3
3
  Defaults = {
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
- # This is the main variable, usually the only one you pass into Docker.
7
- :environment => (ENV['environment'].nil?) ? 'production' : ENV['environment'],
8
- :no_exec => false,
9
- :verbose => false,
10
- 'api_enable' => false,
11
- 'api_port' => 6275
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.1
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: 2014-12-19 00:00:00.000000000 Z
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.