simp-beaker-helpers 1.18.5 → 1.18.6
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0db7d012be090122587cb25885faf36c1d8717d3c9f6e86714adb558512ea280
|
|
4
|
+
data.tar.gz: 7a4e2a70a8fb671f140bc9f44598898eb95c4b7eef3b43f4fd6ea85ed7901bfe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9262da4359d9ca19e65349c3ba6f44f55323167aea9343ae93f8222e70145d6264d90403de65b3874bbe1ebd59e11f826bc9f65c3f2fdaa4e15ccb492a2c42eb
|
|
7
|
+
data.tar.gz: cf24bab582eb4c373b46d6c7e597e5e690d1a163c49b85d816ef4926ea78959959acaa81c215a5ee6f1678a01271a3dac3ca66d77de1e51707775d93ec9de093
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module Simp::BeakerHelpers
|
|
2
|
-
# Helpers for
|
|
2
|
+
# Helpers for managing Vagrant snapshots
|
|
3
3
|
class Snapshot
|
|
4
4
|
# The name of the base snapshot that is created if no snapshots currently exist
|
|
5
5
|
BASE_NAME = '_simp_beaker_base'
|
|
@@ -18,9 +18,7 @@ module Simp::BeakerHelpers
|
|
|
18
18
|
|
|
19
19
|
if vdir
|
|
20
20
|
Dir.chdir(vdir) do
|
|
21
|
-
unless exist?(host, BASE_NAME)
|
|
22
|
-
save(host, BASE_NAME)
|
|
23
|
-
end
|
|
21
|
+
save(host, BASE_NAME) unless exist?(host, BASE_NAME)
|
|
24
22
|
|
|
25
23
|
snap = "#{host.name}_#{snapshot_name}"
|
|
26
24
|
|
|
@@ -67,7 +65,7 @@ module Simp::BeakerHelpers
|
|
|
67
65
|
Dir.chdir(vdir) do
|
|
68
66
|
output = %x(vagrant snapshot list #{host.name}).lines
|
|
69
67
|
output.map! do |x|
|
|
70
|
-
x.split(/^#{host.name}_/).last.strip
|
|
68
|
+
x.split(/^#{host.name}_/).last.split(':').first.delete('==>').strip
|
|
71
69
|
end
|
|
72
70
|
end
|
|
73
71
|
end
|
|
@@ -57,7 +57,7 @@ hosts.each do |host|
|
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
it 'can list the snapshots' do
|
|
60
|
-
expect(Simp::BeakerHelpers::Snapshot.list(host)).to eq ['test', 'test2']
|
|
60
|
+
expect(Simp::BeakerHelpers::Snapshot.list(host)).to eq ["#{host}", 'test', 'test2']
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
it 'can query for a specific snapshot' do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: simp-beaker-helpers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.18.
|
|
4
|
+
version: 1.18.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Tessmer
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2020-06-
|
|
12
|
+
date: 2020-06-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: beaker
|