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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab3f1e696e7425c7caf84aff75bc525f01d1e9d8a3f710ca16c22a1c33a17d7b
4
- data.tar.gz: 5ee348372ba6f0ae7263277ed0a5e1e22164dbeb2c0efa2db273aefa7432007d
3
+ metadata.gz: afddda8670c4bf29ab120d6f80d89f13d6eaa1764f4068fa8fd9cd33b4e6a4a9
4
+ data.tar.gz: eeac298ab64e7f77e5e589288fe4a69397d7a321ef3887ac378f25aa3060ffee
5
5
  SHA512:
6
- metadata.gz: a5fb03f7d54471d7148e9d96139a7e7f31d90aa9eaca9001f22084ccd5ab6ced80020b08f7bfdfe6aa64e74d56624e336383e06082c95d61b76f808b0167dffe
7
- data.tar.gz: 6f8cfdbb284d986e2db323ed668dfd6546dd52dbad8ac838229d41e21a8d6b6db836df171178d297b19ffea0f88e8ce9a37edb2b6514d1ba4c38e8413c64414f
6
+ metadata.gz: f904e63bcef6b3eb970bb3ef162186268f6e95371655cab071dcb8a7c0a1c655c1f7ade92be63fe387b676d4af80e2de985909ce7a8a1e6f0a032475041eb4f4
7
+ data.tar.gz: c2d9efb14e0d063d5861e7cafa2a3a44fbeed4ca07a8e748928bfdf16cdf46dda9aabb08f3f5e259e6fbfc5a5d11ffa2254da58140fbfb40e2146214c8df27ec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opswalrus (1.0.34)
4
+ opswalrus (1.0.35)
5
5
  amazing_print (~> 1.5)
6
6
  bcrypt_pbkdf (~> 1.1)
7
7
  binding_of_caller (~> 1.0)
@@ -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?
@@ -228,7 +228,7 @@ module OpsWalrus
228
228
  end
229
229
 
230
230
  def host_prop(name)
231
- @props["name"]
231
+ @props[name]
232
232
  end
233
233
 
234
234
  end
@@ -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
- keys = keys.map(&:to_s)
203
- if keys.empty?
204
- @params
205
- else
206
- @params.dig(*keys) || default
207
- end
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
@@ -1,3 +1,3 @@
1
1
  module OpsWalrus
2
- VERSION = "1.0.34"
2
+ VERSION = "1.0.35"
3
3
  end
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.34
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-04 00:00:00.000000000 Z
11
+ date: 2023-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: amazing_print