zfs_mgmt 0.4.9 → 0.5.5

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: 97a0bda8881608e6e7fae8a94103e2867d199923f2df9ca9d1776ad6d4626fbe
4
- data.tar.gz: 1851e69229905792ace9c998a3f6e88129c4d2f3d45440e8e2c3f7c07626c147
3
+ metadata.gz: 6e1fe681267d824670659f4d3536c90e2b732902c829466d777753f4cf73b4d1
4
+ data.tar.gz: b3cf3e528151874c1dda228778fe38bd458ccb3256a49f4f515b4a83cc6917d8
5
5
  SHA512:
6
- metadata.gz: 74fc7184eaf7b95edbe8d28dc804230c63c30ff3db0a495e4f86d395006d85ec29e3f2a7ce73d891c0d76627ee47004443d0c81819ece352933dde2a2115c844
7
- data.tar.gz: 3437621f4c6ba8e52254c48d0496685efb530f31bfc96d5b73c396fd275161aae02aeef8714ace50682c086f748b5fe787324372b5994947e69ec6c40ab988a6
6
+ metadata.gz: 0e56622fdf687cfcddfddc261f102dc71089f140815aed67ace0e48dc064e796ee904d5359147cd499af09fbfdc6728e9fef67daff25a747f284a5264bc23281
7
+ data.tar.gz: 92bc78fd42a71c3c1dd322bd817354b9b17a75ad2a0748f54336e8173291cf8fcf5ac40437958f17f1490742a5b13824606e49ee390e71021b2b6c1653e05694
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.4.12
data/.solargraph.yml ADDED
@@ -0,0 +1 @@
1
+ --- {}
data/Gemfile CHANGED
@@ -8,4 +8,6 @@ gem "text-table"
8
8
  gem "filesize"
9
9
  gem "json"
10
10
  gem "timeout"
11
+
12
+ gem 'ruby-lsp', group: :development
11
13
  gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zfs_mgmt (0.4.9)
4
+ zfs_mgmt (0.5.5)
5
5
  filesize (~> 0.2)
6
6
  text-table (~> 1.2)
7
7
  thor (~> 1.0)
@@ -9,26 +9,33 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- diff-lcs (1.5.0)
12
+ diff-lcs (1.6.2)
13
13
  filesize (0.2.0)
14
- json (2.6.2)
15
- rake (13.0.6)
16
- rspec (3.11.0)
17
- rspec-core (~> 3.11.0)
18
- rspec-expectations (~> 3.11.0)
19
- rspec-mocks (~> 3.11.0)
20
- rspec-core (3.11.0)
21
- rspec-support (~> 3.11.0)
22
- rspec-expectations (3.11.0)
14
+ json (3.1.0)
15
+ language_server-protocol (3.17.0.6)
16
+ rake (13.4.2)
17
+ rspec (3.13.2)
18
+ rspec-core (~> 3.13.0)
19
+ rspec-expectations (~> 3.13.0)
20
+ rspec-mocks (~> 3.13.0)
21
+ rspec-core (3.13.7)
22
+ rspec-support (~> 3.13.0)
23
+ rspec-expectations (3.13.6)
23
24
  diff-lcs (>= 1.2.0, < 2.0)
24
- rspec-support (~> 3.11.0)
25
- rspec-mocks (3.11.1)
25
+ rspec-support (~> 3.13.0)
26
+ rspec-mocks (3.13.9)
26
27
  diff-lcs (>= 1.2.0, < 2.0)
27
- rspec-support (~> 3.11.0)
28
- rspec-support (3.11.0)
28
+ rspec-support (~> 3.13.0)
29
+ rspec-support (3.13.8)
30
+ ruby-lsp (0.11.2)
31
+ language_server-protocol (~> 3.17.0)
32
+ sorbet-runtime (>= 0.5.5685)
33
+ yarp (>= 0.12, < 0.13)
34
+ sorbet-runtime (0.6.13690)
29
35
  text-table (1.2.4)
30
- thor (1.2.1)
31
- timeout (0.4.1)
36
+ thor (1.5.0)
37
+ timeout (0.6.1)
38
+ yarp (0.12.0)
32
39
 
33
40
  PLATFORMS
34
41
  x86_64-linux
@@ -39,10 +46,11 @@ DEPENDENCIES
39
46
  json
40
47
  rake (>= 12.3.3)
41
48
  rspec (~> 3.0)
49
+ ruby-lsp
42
50
  text-table
43
51
  thor
44
52
  timeout
45
53
  zfs_mgmt!
46
54
 
47
55
  BUNDLED WITH
48
- 2.3.21
56
+ 2.6.9
@@ -1,3 +1,3 @@
1
1
  module ZfsMgmt
2
- VERSION = "0.4.9"
2
+ VERSION = "0.5.5"
3
3
  end
@@ -25,9 +25,12 @@ class ZfsMgmt::ZfsMgr::Send < Thor
25
25
 
26
26
  method_option :noop, :aliases => :'-n', :desc => "pass -n (noop) option to zfs send", :type => :boolean
27
27
  method_option :unmount, :aliases => :'-u', :desc => "pass -u (unmount) option to zfs receive", :type => :boolean
28
+ method_option :force, :aliases => :'-F', :desc => "pass -F (force) option to zfs receive", :type => :boolean
28
29
  method_option :exclude, :aliases => :'-x', :desc => "passed to -x option of receive side", :type => :string, repeatable: true
29
30
  method_option :option, :aliases => :'-o', :desc => "passed to -o option of receive side", :type => :string, repeatable: true
30
31
  method_option :drop_holds, :desc => "pass the -h option to zfs recv, indicating holds should be ignored", :type => :boolean
32
+ method_option :discard_last, :desc => "pass the -e option to zfs recv, discarding all but the last element of the send snapshot's file system name", :type => :boolean
33
+ method_option :discard_first, :desc => "pass the -d option to zfs recv, discarding the first element of the send snapshot's file system name", :type => :boolean
31
34
 
32
35
  method_option :mbuffer, :desc => "insert mbuffer between send and recv", :default => true, :type => :boolean
33
36
  method_option :mbuffer_size, :desc => "passed to mbuffer -s option", :type => :string
data/lib/zfs_mgmt.rb CHANGED
@@ -554,13 +554,14 @@ module ZfsMgmt
554
554
  zfs_send_com + extra_opts + [dq(target),'|']
555
555
  end
556
556
  def self.zfs_recv_com(options,extra_opts,props,target)
557
- zfs_recv_com = [ ZfsMgmt.global_options[:zfs_binary], 'recv', '-F', '-s' ]
557
+ zfs_recv_com = [ ZfsMgmt.global_options[:zfs_binary], 'recv', '-s' ]
558
558
  recv_opts = {
559
559
  'noop' => '-n',
560
560
  'drop_holds' => '-h',
561
561
  'unmount' => '-u',
562
- #'discard_last' => '-e',
563
- #'discard_first' => '-d',
562
+ 'discard_last' => '-e',
563
+ 'discard_first' => '-d',
564
+ 'force' => '-F'
564
565
  }
565
566
  recv_opts.each do |p,o|
566
567
  # allow the command line options to override the properties value
data/mise.toml ADDED
@@ -0,0 +1,2 @@
1
+ [settings]
2
+ idiomatic_version_file_enable_tools = ["ruby"]
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zfs_mgmt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aran Cox
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-02-06 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bundler
@@ -94,21 +93,22 @@ dependencies:
94
93
  - - "~>"
95
94
  - !ruby/object:Gem::Version
96
95
  version: '0.2'
97
- description:
98
96
  email:
99
97
  - arancox@gmail.com
100
98
  executables:
101
99
  - readsnaps
102
- - zfssendman
103
- - zfssnapman
104
- - zfsrecvman
105
100
  - zfs-list-snapshots
106
101
  - zfsmgr
102
+ - zfsrecvman
103
+ - zfssendman
104
+ - zfssnapman
107
105
  extensions: []
108
106
  extra_rdoc_files: []
109
107
  files:
110
108
  - ".gitignore"
111
109
  - ".rspec"
110
+ - ".ruby-version"
111
+ - ".solargraph.yml"
112
112
  - ".travis.yml"
113
113
  - COPYING
114
114
  - Gemfile
@@ -132,6 +132,7 @@ files:
132
132
  - lib/zfs_mgmt/zfs_mgr/restic.rb
133
133
  - lib/zfs_mgmt/zfs_mgr/send.rb
134
134
  - lib/zfs_mgmt/zfs_mgr/snapshot.rb
135
+ - mise.toml
135
136
  - zfs_mgmt.gemspec
136
137
  homepage: https://github.com/aranc23/zfs_mgmt
137
138
  licenses:
@@ -140,7 +141,6 @@ metadata:
140
141
  homepage_uri: https://github.com/aranc23/zfs_mgmt
141
142
  source_code_uri: https://github.com/aranc23/zfs_mgmt
142
143
  changelog_uri: https://github.com/aranc23/zfs_mgmt/commits/
143
- post_install_message:
144
144
  rdoc_options: []
145
145
  require_paths:
146
146
  - lib
@@ -155,8 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0'
157
157
  requirements: []
158
- rubygems_version: 3.4.20
159
- signing_key:
158
+ rubygems_version: 3.6.9
160
159
  specification_version: 4
161
160
  summary: Misc. helpers regarding snapshots and send/recv.
162
161
  test_files: []