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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cloudstrap/config.rb +19 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc9419405b45fa2b6ce77e13a6214eea069b1cdb
4
- data.tar.gz: 4a3b4d6cec099f2fd7f51cf530bb605664996214
3
+ metadata.gz: eff30e4366b96f4ecfa689d2f25b9bda668b93df
4
+ data.tar.gz: 7282e86940e01caa86072a99d42db13a7083bb00
5
5
  SHA512:
6
- metadata.gz: c75b853bce1ab62228e7cf76f1a22c85102fe4679e477480814587cbb3d6e369a82e6e6e07c6e03320c98afd6e5614ecb3edd9866cd48c03ab2f2eba5658fb85
7
- data.tar.gz: bcc021f60f44c04ad9f2a5b4057d93fd25d5e395e1a969c54740aca873c7e9e418071bd258bd7bf0a4b962cf74ca1c78c0d99c4c2d1b23311b2a6e62129e73e4
6
+ metadata.gz: fca1459c0886a4558caaa0415a9654f2c6fce6a9a2f470e9ef38194c584175a0ba265c355677b6c08ab9a7817015fa6d93d8b9ca85e00722f08ecb4417f90d0a
7
+ data.tar.gz: d79a0c3896be36c3c249096e70a0b0fbb20acb6430f97f485291c0f117eb334534c0ae5ca9b32aef21cd2be34ce26e9fe13c29fa10e23a710bf7a7deb60f3ef1
@@ -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 })
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.43.0.pre
4
+ version: 0.43.2.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Olstrom