vagrant-scp-sync 0.5.16 → 0.5.17

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: 39eb1408a8d8e620bac881ec74ac17bab6834e2d0a5506278aa88922c0481585
4
- data.tar.gz: 3239d37962771cc1a7e330a633617fce7f6fb96bbb4a522569389d10f9595beb
3
+ metadata.gz: acd257f1f65be09bc6f854e7ea5231036ee7f007a0686e9e446f623564272147
4
+ data.tar.gz: e053ef9545b383f205efecd994cb5decc4c578f1f59a01533007fcac2aad1789
5
5
  SHA512:
6
- metadata.gz: 1b0cf61de8a0475b78eb94db00cf064be8e135924ec6760c8e7b21330900fe6451c450854c2257051bf2d9db588b8976cfa56013c6196a01392d2f7e76de97bc
7
- data.tar.gz: 2a295ad03d2082d32fbc5ac8dfea8753f44431c79315faaad0394f82f7d5b57856000ec59c817e8f02b5043da6bd61f0ceb4c3e41a92711f3c5989abffc86d5a
6
+ metadata.gz: 4398e00868c4f33266a50a2398c2977fc64e75d11e76aa8e3866eb77bf73a104c42a8acae5abe0a2e54a9c3593189d4a744f9b5f477876741228f16acc9d6c38
7
+ data.tar.gz: c67273ff215c79145b3844e8838ba890722a6cb884e153117e14be83a6ca8437c789e4b9f52a84f7cae18c00544c3e2a2bcebd1e76c6807ec62f1a6d7b41bc5d
@@ -1,6 +1,9 @@
1
1
  # .github/workflows/release.yml
2
2
 
3
3
  name: Test, Lint, Release and Publish
4
+ run-name: >-
5
+ ${{ github.event_name == 'push'
6
+ && format('Auto - Test, Lint, Release and Publish', github.ref_name) }}
4
7
 
5
8
  on:
6
9
  push:
@@ -6,6 +6,9 @@
6
6
  # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
7
 
8
8
  name: Ruby-lint
9
+ run-name: >-
10
+ ${{ github.event_name == 'push'
11
+ && format('Auto - Test, Lint', github.ref_name) }}
9
12
 
10
13
  on:
11
14
  push:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.5.17](https://github.com/STARTcloud/vagrant-scp-sync/compare/v0.5.16...v0.5.17) (2024-12-23)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * single file sync - lint ([814d333](https://github.com/STARTcloud/vagrant-scp-sync/commit/814d333a78b41e7d7e62b69086abd36d3182c0cd))
9
+ * single file sync - lint ([7b9bb34](https://github.com/STARTcloud/vagrant-scp-sync/commit/7b9bb345c8137030f83a438aa6e101e07be3d7fb))
10
+
3
11
  ## [0.5.16](https://github.com/STARTcloud/vagrant-scp-sync/compare/v0.5.15...v0.5.16) (2024-12-23)
4
12
 
5
13
 
@@ -2,10 +2,22 @@
2
2
 
3
3
  require 'vagrant/util/platform'
4
4
  require 'vagrant/util/subprocess'
5
- require 'vagrant-scp-sync/ssh_options'
6
-
7
5
  module VagrantPlugins
8
6
  module ScpSync
7
+ # Helper class for building SSH options
8
+ class SshOptions
9
+ def self.build(ssh_info)
10
+ opts = %w[
11
+ -o StrictHostKeyChecking=no
12
+ -o UserKnownHostsFile=/dev/null
13
+ -o LogLevel=ERROR
14
+ ]
15
+ opts << "-o port=#{ssh_info[:port]}"
16
+ opts << ssh_info[:private_key_path].map { |k| "-i #{k}" }.join(' ')
17
+ opts
18
+ end
19
+ end
20
+
9
21
  # This will SCP the files
10
22
  class ScpSyncHelper
11
23
  def self.scp_single(machine, opts, scp_path)
@@ -74,19 +86,19 @@ module VagrantPlugins
74
86
  make_dir = "mkdir -p #{target_dir}"
75
87
  end
76
88
 
77
- # Execute commands with proper error messages
78
- execute_command(machine, remove_dir, true, 'scp_sync_error_delete_directory', opts) if delete
79
- execute_command(machine, make_dir, true, 'scp_sync_error_make_directory', opts)
89
+ # Execute commands silently for setup
90
+ execute_command(machine, remove_dir, true, nil, opts) if delete
91
+ execute_command(machine, make_dir, true, nil, opts)
80
92
 
81
93
  # For upload, ensure remote directory permissions
82
94
  if opts[:direction] == :upload || opts[:direction].nil?
83
- execute_command(machine, change_ownership, true, 'scp_sync_error_change_ownership_directory', opts)
84
- execute_command(machine, change_permissions, true, 'scp_sync_error_change_permissions_directory', opts)
95
+ execute_command(machine, change_ownership, true, nil, opts)
96
+ execute_command(machine, change_permissions, true, nil, opts)
85
97
  end
86
98
 
87
- # Build and execute the scp command
99
+ # Build and execute the scp command with sync message
88
100
  synchronize = build_scp_command(scp_path, ssh_opts, source, target)
89
- execute_command(machine, synchronize, true, 'scp_sync_folder_error', opts)
101
+ execute_command(machine, synchronize, true, 'scp_sync_folder', opts)
90
102
  end
91
103
 
92
104
  def self.expand_path(path, machine)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Vagrant
4
4
  module ScpSync
5
- VERSION = '0.5.16'
5
+ VERSION = '0.5.17'
6
6
  NAME = 'vagrant-scp-sync'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-scp-sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.16
4
+ version: 0.5.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Gilbert
@@ -143,7 +143,6 @@ files:
143
143
  - lib/vagrant-scp-sync/command/scp.rb
144
144
  - lib/vagrant-scp-sync/errors.rb
145
145
  - lib/vagrant-scp-sync/plugin.rb
146
- - lib/vagrant-scp-sync/ssh_options.rb
147
146
  - lib/vagrant-scp-sync/synced_folder.rb
148
147
  - lib/vagrant-scp-sync/version.rb
149
148
  - locales/en.yml
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module VagrantPlugins
4
- module ScpSync
5
- # Helper class for building SSH options
6
- class SshOptions
7
- def self.build(ssh_info)
8
- opts = %w[
9
- -o StrictHostKeyChecking=no
10
- -o UserKnownHostsFile=/dev/null
11
- -o LogLevel=ERROR
12
- ]
13
- opts << "-o port=#{ssh_info[:port]}"
14
- opts << ssh_info[:private_key_path].map { |k| "-i #{k}" }.join(' ')
15
- opts
16
- end
17
- end
18
- end
19
- end