opswalrus 1.0.17 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2ce759171a0342644a1e3e2c94555299b093095b1684a69e11142fe29292da4
4
- data.tar.gz: 75f4cab88e00038c73df02d69718b5cd067f3ed69150c192335894128ef912d0
3
+ metadata.gz: 27cea4b01102c518b26f6b47e47a6461ff76aac39f4ab0094955aa6413d3e9f7
4
+ data.tar.gz: ce1b064a905fea231d4d551513a74f33f726cfcfdede0e4a2660acefc17c1b62
5
5
  SHA512:
6
- metadata.gz: 6d47f83ae4dde1c9007f0d4591da7d6d9501218b15dfed542bdf9eda8538cfca14e22baa0d0a9e7dd244ef0db3fc683f862f296e296f713f500a3b084de02dac
7
- data.tar.gz: 96877f5975e10dd6415194f5f130f3b7b31fcee66199c354cee93386116b4c0e918749c4158ec6da4a9fe64d9414410032c47d5c78c41caf2a36683cab259a03
6
+ metadata.gz: 5bd3daea688e85fe18e8f61bb455b238478b8be1f6caf9be2bed096af0d20187155d4882a2fb2732044eaee3f93303f1592b3025fbdfc74775a323007bd1a544
7
+ data.tar.gz: 027a8423627f1af58966e9064157c72cdfca7aec5e74f04130cd8b563ec23217ee9dc0da9ccf43afdc1b07f39bd2ab69e3d744d7355b9f27ae1536d16180caea
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opswalrus (1.0.17)
4
+ opswalrus (1.0.18)
5
5
  amazing_print (~> 1.5)
6
6
  bcrypt_pbkdf (~> 1.1)
7
7
  citrus (~> 3.0)
data/lib/opswalrus/app.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require "amazing_print"
1
2
  require "citrus"
2
3
  require "io/console"
3
4
  require "json"
@@ -18,9 +18,9 @@ module OpsWalrus
18
18
  ops_file.local_symbol_table.each do |symbol_name, import_reference|
19
19
  unless methods_defined.include? symbol_name
20
20
  klass.define_method(symbol_name) do |*args, **kwargs, &block|
21
- # puts "resolving local symbol table entry: #{symbol_name}"
21
+ App.instance.trace "resolving local symbol table entry: #{symbol_name}"
22
22
  namespace_or_ops_file = @runtime_env.resolve_import_reference(ops_file, import_reference)
23
- # puts "namespace_or_ops_file=#{namespace_or_ops_file.to_s}"
23
+ App.instance.trace "namespace_or_ops_file=#{namespace_or_ops_file.to_s}"
24
24
 
25
25
  invocation_context = case import_reference
26
26
  # we know we're dealing with a package dependency reference, so we want to run an ops file contained within the bundle directory,
@@ -49,6 +49,10 @@ module OpsWalrus
49
49
  unless methods_defined.include? symbol_name
50
50
  # puts "2. defining: #{symbol_name}(...)"
51
51
  klass.define_method(symbol_name) do |*args, **kwargs, &block|
52
+ App.instance.trace "resolving implicit import: #{symbol_name}"
53
+ namespace_or_ops_file = @runtime_env.resolve_sibling_symbol(ops_file, symbol_name)
54
+ App.instance.trace "namespace_or_ops_file=#{namespace_or_ops_file.to_s}"
55
+
52
56
  invocation_context = RemoteImportInvocationContext.new(@runtime_env, self, namespace_or_ops_file, false, prompt_for_sudo_password: !!ssh_password)
53
57
  invocation_context._invoke(*args, **kwargs)
54
58
  end
@@ -126,7 +126,7 @@ module OpsWalrus
126
126
  rescue => e
127
127
  puts e.class
128
128
  puts e.message
129
- # puts e.backtrace.join("\n")
129
+ puts e.backtrace.join("\n")
130
130
  ensure
131
131
  host.clear_ssh_session
132
132
  end
@@ -1,3 +1,3 @@
1
1
  module OpsWalrus
2
- VERSION = "1.0.17"
2
+ VERSION = "1.0.18"
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.17
4
+ version: 1.0.18
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-08-23 00:00:00.000000000 Z
11
+ date: 2023-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: amazing_print