lib/cloudstrap/config.rb in cloudstrap-0.45.0.pre vs lib/cloudstrap/config.rb in cloudstrap-0.45.2.pre

- old
+ new

@@ -128,10 +128,15 @@ "#{hce_prefix}/dist/v2/linux-amd64.json" end.squeeze('/') end Contract None => String + def hce_version + lookup(:hce_version) { latest.hce } + end + + Contract None => String def hsm_prefix lookup(:hsm_prefix) do "#{artifact_prefix}/hsm" end.squeeze('/') end @@ -139,9 +144,14 @@ Contract None => String def hsm_metadata lookup(:hsm_metadata) do "#{hsm_prefix}/cli/update/linux-amd64.json" end.squeeze('/') + end + + Contract None => String + def hsm_version + lookup(:hsm_version) { latest.hsm } end Contract None => String def hcp_prefix lookup(:hcp_prefix) do