diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 3b7c3ea..384440c 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2025-11-03 15:48:25 UTC using RuboCop version 1.76.2. +# on 2026-07-08 19:38:12 UTC using RuboCop version 1.76.2. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -22,7 +22,7 @@ Metrics/AbcSize: # Offense count: 1 # Configuration parameters: CountComments, CountAsOne. Metrics/ClassLength: - Max: 128 + Max: 129 # Offense count: 1 # Configuration parameters: AllowedMethods, AllowedPatterns. @@ -32,7 +32,7 @@ Metrics/CyclomaticComplexity: # Offense count: 3 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. Metrics/MethodLength: - Max: 19 + Max: 20 # Offense count: 1 RSpec/AnyInstance: @@ -46,10 +46,10 @@ RSpec/ContextWording: Exclude: - 'spec/bolt_dynamic_inventory_spec.rb' -# Offense count: 9 +# Offense count: 10 # Configuration parameters: CountAsOne. RSpec/ExampleLength: - Max: 25 + Max: 26 # Offense count: 7 # Configuration parameters: AllowSubject. diff --git a/lib/bolt_dynamic_inventory/provider/orbstack/inventory.rb b/lib/bolt_dynamic_inventory/provider/orbstack/inventory.rb index ad4fbfa..6e0a31e 100644 --- a/lib/bolt_dynamic_inventory/provider/orbstack/inventory.rb +++ b/lib/bolt_dynamic_inventory/provider/orbstack/inventory.rb @@ -31,6 +31,7 @@ def generate_inventory(orbs) 'transport' => 'ssh', 'ssh' => { 'native-ssh' => true, + 'copy-command' => ['scp', '-r', '-O'], 'load-config' => true, 'login-shell' => 'bash', 'tty' => false, diff --git a/lib/bolt_dynamic_inventory/provider/vmpooler/inventory.rb b/lib/bolt_dynamic_inventory/provider/vmpooler/inventory.rb index eacc28a..35aad0f 100644 --- a/lib/bolt_dynamic_inventory/provider/vmpooler/inventory.rb +++ b/lib/bolt_dynamic_inventory/provider/vmpooler/inventory.rb @@ -27,6 +27,7 @@ class Inventory 'transport' => 'ssh', 'ssh' => { 'native-ssh' => true, + 'copy-command' => ['scp', '-r', '-O'], 'load-config' => true, 'login-shell' => 'bash', 'tty' => false, diff --git a/spec/bolt_dynamic_inventory_spec.rb b/spec/bolt_dynamic_inventory_spec.rb index 487388c..05f2334 100644 --- a/spec/bolt_dynamic_inventory_spec.rb +++ b/spec/bolt_dynamic_inventory_spec.rb @@ -56,6 +56,7 @@ expect(ssh_config).to include( 'native-ssh' => true, + 'copy-command' => ['scp', '-r', '-O'], 'load-config' => true, 'login-shell' => 'bash', 'tty' => false, @@ -214,6 +215,7 @@ expect(linux_group['facts']).to eq('role' => 'linux') expect(linux_group['config']['ssh']).to include( 'native-ssh' => true, + 'copy-command' => ['scp', '-r', '-O'], 'load-config' => true, 'login-shell' => 'bash' ) @@ -290,6 +292,7 @@ expect(linux_group['facts']).to eq('role' => 'linux') expect(linux_group['config']['ssh']).to include( 'native-ssh' => true, + 'copy-command' => ['scp', '-r', '-O'], 'load-config' => true, 'login-shell' => 'bash' )