opswalrus 1.0.34 → 1.0.35
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/opswalrus/bundler.rb +2 -0
- data/lib/opswalrus/host.rb +1 -1
- data/lib/opswalrus/ops_file_script.rb +3 -2
- data/lib/opswalrus/ops_file_script_dsl.rb +8 -8
- data/lib/opswalrus/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: afddda8670c4bf29ab120d6f80d89f13d6eaa1764f4068fa8fd9cd33b4e6a4a9
|
4
|
+
data.tar.gz: eeac298ab64e7f77e5e589288fe4a69397d7a321ef3887ac378f25aa3060ffee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f904e63bcef6b3eb970bb3ef162186268f6e95371655cab071dcb8a7c0a1c655c1f7ade92be63fe387b676d4af80e2de985909ce7a8a1e6f0a032475041eb4f4
|
7
|
+
data.tar.gz: c2d9efb14e0d063d5861e7cafa2a3a44fbeed4ca07a8e748928bfdf16cdf46dda9aabb08f3f5e259e6fbfc5a5d11ffa2254da58140fbfb40e2146214c8df27ec
|
data/Gemfile.lock
CHANGED
data/lib/opswalrus/bundler.rb
CHANGED
@@ -116,6 +116,8 @@ module OpsWalrus
|
|
116
116
|
|
117
117
|
destination_package_path = @bundle_dir.join(package_reference.import_resolution_dirname)
|
118
118
|
|
119
|
+
App.instance.log("Downloading #{package_reference} referenced in #{package_file.package_file_path} to #{destination_package_path}")
|
120
|
+
|
119
121
|
# we return early here under the assumption that an already downloaded package/version combo will not
|
120
122
|
# differ if we download it again multiple times to the same location
|
121
123
|
if destination_package_path.exist?
|
data/lib/opswalrus/host.rb
CHANGED
@@ -55,9 +55,9 @@ module OpsWalrus
|
|
55
55
|
@params[key]
|
56
56
|
end
|
57
57
|
|
58
|
-
def dig(*keys)
|
58
|
+
def dig(*keys, default: nil)
|
59
59
|
# keys = keys.map {|key| key.is_a?(Integer) ? key : key.to_s }
|
60
|
-
@params.dig(*keys)
|
60
|
+
@params.dig(*keys) || default
|
61
61
|
end
|
62
62
|
|
63
63
|
def method_missing(name, *args, **kwargs, &block)
|
@@ -141,6 +141,7 @@ module OpsWalrus
|
|
141
141
|
def _invoke(runtime_env, hashlike_params)
|
142
142
|
@runtime_env = runtime_env
|
143
143
|
@params = InvocationParams.new(hashlike_params)
|
144
|
+
params = @params
|
144
145
|
#{ruby_script}
|
145
146
|
end
|
146
147
|
INVOKE_METHOD
|
@@ -198,14 +198,14 @@ module OpsWalrus
|
|
198
198
|
# invocation_context._invoke(*args, **kwargs)
|
199
199
|
end
|
200
200
|
|
201
|
-
def params(*keys, default: nil)
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
end
|
201
|
+
# def params(*keys, default: nil)
|
202
|
+
# keys = keys.map(&:to_s)
|
203
|
+
# if keys.empty?
|
204
|
+
# @params
|
205
|
+
# else
|
206
|
+
# @params.dig(*keys) || default
|
207
|
+
# end
|
208
|
+
# end
|
209
209
|
|
210
210
|
def desc(msg)
|
211
211
|
puts msg.mustache
|
data/lib/opswalrus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opswalrus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.35
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Ellis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: amazing_print
|