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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/cem_acpt/platform/gcp.rb +4 -4
- data/lib/cem_acpt/platform.rb +4 -3
- data/lib/cem_acpt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50d9f549fee6436b9f857dbdf313dcab94b223e988c2cbfeadd8999d86f436f0
|
4
|
+
data.tar.gz: 62a556754fe568b9d3bbc28b7381b3657c7aa0db872e5405bb392a1b9cef061d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf027699bcf399a68a6b845ef4191b4b912736f6eb52708e35a0393e78fce74f3c0299ee627bbfe80ec06a8ef9be0e5b030db6a1ab99a678943c8ebdf21112f6
|
7
|
+
data.tar.gz: eb7448394e6be3719a735cf30adedae0aefb0ea8a6144523300c2e57da61bdbb3dfbf76a394b3c2014cc78a8283a6c565f2f311481951d09f1211454f22add74
|
data/Gemfile.lock
CHANGED
@@ -12,9 +12,9 @@ module Platform
|
|
12
12
|
|
13
13
|
# Provision a GCP instance
|
14
14
|
def provision
|
15
|
-
creation_params = config
|
16
|
-
creation_params[:disk][:image_name] = image_name
|
17
|
-
creation_params[:local_port] = local_port
|
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
|
-
#
|
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
|
data/lib/cem_acpt/platform.rb
CHANGED
@@ -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?(
|
67
|
-
klass = Object.const_get(
|
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
|
-
|
78
|
+
class_name,
|
78
79
|
Class.new(CemAcpt::Platform::Base) do
|
79
80
|
require_relative "platform/#{platform}"
|
80
81
|
include Platform
|
data/lib/cem_acpt/version.rb
CHANGED
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.
|
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-
|
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
|