cem_acpt 0.3.2-universal-java-17 → 0.3.3-universal-java-17

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: c1403d7aad1f43c9ab46a2ec09e10e6e6971a895f864f908da36d1aa4f459ccb
4
- data.tar.gz: 7c24f47c835e7422311e21fb3b398d871ba88fa8ba295a6b403c0b5006cfe890
3
+ metadata.gz: 50d9f549fee6436b9f857dbdf313dcab94b223e988c2cbfeadd8999d86f436f0
4
+ data.tar.gz: 62a556754fe568b9d3bbc28b7381b3657c7aa0db872e5405bb392a1b9cef061d
5
5
  SHA512:
6
- metadata.gz: d828aa44f6879dacbd6b5dabd5682dad73e7f4150436a0bffb51c73707345f61bd1b45527d102dfe67cb060acf0cec639c24c89df1a11b6c3f8598e48c939621
7
- data.tar.gz: fa6b986ce60edafa468ee41a7dda019aad8fe09590918e93ec41325e9158a9bd96712a26b6575b1f08d7f239e66d14665ca2a3cbd90dcf08e0d6ce95347ceb73
6
+ metadata.gz: bf027699bcf399a68a6b845ef4191b4b912736f6eb52708e35a0393e78fce74f3c0299ee627bbfe80ec06a8ef9be0e5b030db6a1ab99a678943c8ebdf21112f6
7
+ data.tar.gz: eb7448394e6be3719a735cf30adedae0aefb0ea8a6144523300c2e57da61bdbb3dfbf76a394b3c2014cc78a8283a6c565f2f311481951d09f1211454f22add74
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cem_acpt (0.3.2-universal-java-17)
4
+ cem_acpt (0.3.3-universal-java-17)
5
5
  concurrent-ruby (>= 1.1, < 2.0)
6
6
  deep_merge (>= 1.2, < 2.0)
7
7
  ed25519 (>= 1.2, < 2.0)
@@ -12,9 +12,9 @@ module Platform
12
12
 
13
13
  # Provision a GCP instance
14
14
  def provision
15
- creation_params = config.dup
16
- creation_params[:disk][:image_name] = image_name.dup
17
- creation_params[:local_port] = local_port.dup
15
+ creation_params = Marshal.load(Marshal.dump(config))
16
+ creation_params[:disk][:image_name] = image_name
17
+ creation_params[:local_port] = local_port
18
18
  @instance = CemAcpt::Platform::Gcp::VM.new(
19
19
  node_name.dup,
20
20
  components: creation_params,
@@ -64,7 +64,7 @@ module Platform
64
64
  CemAcpt::Platform::Gcp::Cmd.new(out_format: 'json')
65
65
  end
66
66
 
67
- # Apllies the given Puppet manifest on the given instance
67
+ # Applies the given Puppet manifest on the given instance
68
68
  # @param instance_name [String] the name of the instance to apply the manifest to
69
69
  # @param manifest [String] the Puppet manifest to apply
70
70
  # @param opts [Hash] options to pass to the apply command
@@ -59,12 +59,13 @@ module CemAcpt::Platform
59
59
  # @param platform [String] the name of the platform.
60
60
  # @return [Class] the platform-specific Object.
61
61
  def platform_class(platform)
62
+ class_name = platform.capitalize
62
63
  # We require the platform base class here so that we can use it as
63
64
  # a parent class for the platform-specific class.
64
65
  require_relative 'platform/base'
65
66
  # If the class has already been defined, we can just use it.
66
- if Object.const_defined?(platform.capitalize)
67
- klass = Object.const_get(platform.capitalize)
67
+ if Object.const_defined?(class_name)
68
+ klass = Object.const_get(class_name)
68
69
  else
69
70
  # Otherwise, we need to create the class. We do this by setting
70
71
  # a new constant with the name of the platform capitalized, and
@@ -74,7 +75,7 @@ module CemAcpt::Platform
74
75
  # include Logging and Concurrent::Async, and finally call the
75
76
  # initialize method on the class.
76
77
  klass = Object.const_set(
77
- platform.capitalize,
78
+ class_name,
78
79
  Class.new(CemAcpt::Platform::Base) do
79
80
  require_relative "platform/#{platform}"
80
81
  include Platform
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CemAcpt
4
- VERSION = '0.3.2'
4
+ VERSION = '0.3.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cem_acpt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: universal-java-17
6
6
  authors:
7
7
  - puppetlabs
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-13 00:00:00.000000000 Z
11
+ date: 2022-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement