cem_acpt 0.3.1-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: f977844689308ecaf3b9002e6665ad973a79eb6c0c0c728ceeb1423dbc83e62c
4
- data.tar.gz: d38363d98ecc2a895932f239acc9d7de6d23090898c1822924a7ec6385a1abdd
3
+ metadata.gz: 50d9f549fee6436b9f857dbdf313dcab94b223e988c2cbfeadd8999d86f436f0
4
+ data.tar.gz: 62a556754fe568b9d3bbc28b7381b3657c7aa0db872e5405bb392a1b9cef061d
5
5
  SHA512:
6
- metadata.gz: 41ec4792a70f45c501fd7c5c3de8f93bed4ee409e6ccea1f00d67aa1037338a9ba0cb005f87b4618cf8e412a9f6abdfdfd8d3bf6442e9fc9db573b021177cb69
7
- data.tar.gz: 111909e4ceb4470d0853af023d1da617e0c3deda96a1e2cdb73a959979e316a16d00678b28c0c29e5720ef08e4e846a803a01ad6eecc0c0857cf234a0250cb4c
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.1-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,11 +12,11 @@ module Platform
12
12
 
13
13
  # Provision a GCP instance
14
14
  def provision
15
- creation_params = config.dup
15
+ creation_params = Marshal.load(Marshal.dump(config))
16
16
  creation_params[:disk][:image_name] = image_name
17
17
  creation_params[:local_port] = local_port
18
18
  @instance = CemAcpt::Platform::Gcp::VM.new(
19
- node_name,
19
+ node_name.dup,
20
20
  components: creation_params,
21
21
  )
22
22
  @instance.configure!
@@ -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.1'
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.1
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-11-29 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