cloudstrap 0.43.0.pre → 0.43.2.pre
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/lib/cloudstrap/config.rb +19 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eff30e4366b96f4ecfa689d2f25b9bda668b93df
|
|
4
|
+
data.tar.gz: 7282e86940e01caa86072a99d42db13a7083bb00
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fca1459c0886a4558caaa0415a9654f2c6fce6a9a2f470e9ef38194c584175a0ba265c355677b6c08ab9a7817015fa6d93d8b9ca85e00722f08ecb4417f90d0a
|
|
7
|
+
data.tar.gz: d79a0c3896be36c3c249096e70a0b0fbb20acb6430f97f485291c0f117eb334534c0ae5ca9b32aef21cd2be34ce26e9fe13c29fa10e23a710bf7a7deb60f3ef1
|
data/lib/cloudstrap/config.rb
CHANGED
|
@@ -150,6 +150,25 @@ module Cloudstrap
|
|
|
150
150
|
end.squeeze('/')
|
|
151
151
|
end
|
|
152
152
|
|
|
153
|
+
Contract None => String
|
|
154
|
+
def hcp_channel
|
|
155
|
+
lookup(:hcp_channel) do
|
|
156
|
+
case channel
|
|
157
|
+
when 'dev'
|
|
158
|
+
'hcp_0.9_development'
|
|
159
|
+
when 'release'
|
|
160
|
+
'hcp_1.0_stable'
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
Contract None => String
|
|
166
|
+
def hcp_metadata
|
|
167
|
+
lookup(:hcp_metadata) do
|
|
168
|
+
"#{hcp_prefix}/cli/update/#{hcp_channel}/linux-amd64.json"
|
|
169
|
+
end.squeeze('/')
|
|
170
|
+
end
|
|
171
|
+
|
|
153
172
|
Contract None => String
|
|
154
173
|
def hcp_dir
|
|
155
174
|
@hcp_dir ||= File.expand_path(ENV.fetch('BOOTSTRAP_HCP_DIR') { dir })
|