shiplane_bootstrappers_chef 0.2.6 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2a82650dbc7581a8081209d2e2b4072400274b280d363f32406770ad46db82c
4
- data.tar.gz: 249cbe09451e215eba1e7a68aa79fb88813cc82330b291276eac23582043687c
3
+ metadata.gz: c3ddaf5e453ab1a96642adffec92d47172ee7870d4edce426ab8d1961d4050c8
4
+ data.tar.gz: 56b86564a0c452e8be2f6380232e623477ca6fd7711ca864d7fd48cddc3de802
5
5
  SHA512:
6
- metadata.gz: 02646c1d22d4478848955fd5a32a1cc334c2db2fddca96b9f7b6799ac04de64d717f425e5fa2c25de384617083ab6d2e2e209817166ef4d9a8fb9a38089796db
7
- data.tar.gz: 2c410072d32b857cb7df3b64cfe73fa88bb33ac340771e54d72eda174da3df7972c851614ccf3362e417aa2f563457fa4906799c5cee7c7ce18b7c9c4b7bf199
6
+ metadata.gz: 3d6dd0077dc63c26a612989031146b6d46555d152d529c43f388b43e1b2d4c3f4091f8aa6278b7a0b11731e199d96b19098c7e5fd6515dee897cef0dc1493993
7
+ data.tar.gz: 860817f54a08977fa132eab95f67950b9df7dd7f8f614945c3dcd960952537b8c3b687ce176a4131f3ef1ba7fefba63d7ae74730c6db540639767241c4edddfc
@@ -22,7 +22,11 @@ namespace :shiplane do
22
22
  # end
23
23
 
24
24
  task :evaluate_erb_files, :username, :keypath do |task, args|
25
- Dotenv.load Shiplane::ChefHost.env_file
25
+ dotenv_filename = Shiplane::ChefHost.env_file
26
+ dotenv_filename = "#{dotenv_filename}.#{fetch(:stage)}" if File.exist?("#{dotenv_filename}.#{fetch(:stage)}")
27
+
28
+ Dotenv.load dotenv_filename
29
+
26
30
  on fetch(:shiplane_hosts).map(&:capistrano_role) do |host|
27
31
  @shiplane_users = [
28
32
  "docker",
@@ -3,7 +3,7 @@
3
3
  module Shiplane
4
4
  module Bootstrappers
5
5
  module Chef
6
- VERSION = "0.2.6"
6
+ VERSION = "0.2.9"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shiplane_bootstrappers_chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Epperson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-25 00:00:00.000000000 Z
11
+ date: 2022-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano