soloist 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -68,7 +68,7 @@ soloistrc
68
68
 
69
69
  Environment Variable Switching (Alpha)
70
70
  ======================================
71
- I'm undecided on how recipes should be selected once you get to the point of running chef on various platforms and on boxes with different roles. I'm trying out adding support in the soloistrc file for selecting recipes based on environment variables. Cap should allow setting environment variables fairly easily, and they can be set permanently on the machine if desired. To use these, add a env_variable_switches key to your soloistrc. They keys of the hash should be the environment variable you wish to change the configuration based on, and the value should be a hash keyed by the value of the environment variable. It's easier than it sounds - see the example below. (NB: Note that the CamelSnake is gone in the soloistrc, and while the basic config accepts the old keys, environment variable switching requires snake case keys)
71
+ I'm trying out adding support in the soloistrc file for selecting recipes based on environment variables. Cap should allow setting environment variables fairly easily on deploy, and they can be set permanently on the machine if desired. To use these, add a env_variable_switches key to your soloistrc. They keys of the hash should be the environment variable you wish to change the configuration based on, and the value should be a hash keyed by the value of the variable. It's easier than it sounds - see the example below. (NB: Note that the CamelSnake is gone in the soloistrc, and while the basic config accepts the old keys, environment variable switching requires snake case keys)
72
72
 
73
73
  cookbook_paths:
74
74
  - ./chef/cookbooks/
@@ -81,3 +81,14 @@ I'm undecided on how recipes should be selected once you get to the point of run
81
81
  - ./chef/dev_cookbooks/
82
82
  recipes:
83
83
  - pivotal_dev::foo
84
+
85
+ The values are merged in, so this results in a cookbook path of
86
+ [
87
+ "./chef/cookbooks/",
88
+ "./chef/dev_cookbooks/"
89
+ ]
90
+ and a recipe list of
91
+ [
92
+ "pivotal_workstation::ack",
93
+ "pivotal_dev::foo"
94
+ ]
data/bin/soloist CHANGED
@@ -40,7 +40,7 @@ solo_rb = fileify(config_generator.solo_rb)
40
40
  metadata_json = fileify(config_generator.json_file)
41
41
 
42
42
  env_vars = ["PATH=#{ENV['PATH']}"]
43
- %w{BUNDLE_PATH GEM_HOME GEM_PATH RAILS_ENV}.each do |v|
43
+ %w{BUNDLE_PATH GEM_HOME GEM_PATH RAILS_ENV RACK_ENV}.each do |v|
44
44
  env_vars << "#{v}=#{ENV[v]}" unless ENV[v].nil?
45
45
  end
46
46
 
@@ -1,3 +1,3 @@
1
1
  module Soloist
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soloist
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matthew Kocher