vagrant-eryph 0.1.1 → 0.1.2
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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/vagrant-eryph/actions/is_state.rb +21 -0
- data/lib/vagrant-eryph/actions.rb +5 -4
- data/lib/vagrant-eryph/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d8510d9544d0730e1569249a684e99e925219f3e8c3076f9b3e1bb8535291ec
|
4
|
+
data.tar.gz: 2eb2c0b65b421828fd05c7341dee2c03f2c98bb9a9148992e09712b74288b22f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29dac22ab524da0a07f269fd999ea9caaab10d0e6148b6550365ee24fccc512e07dc09398149c7788dd7a4f883208e89555f9bff59cc5225637f6ee4571eb97c
|
7
|
+
data.tar.gz: f359b334f4ec51030b57a875f1ee18c773928676f91bd6768aeb72accfbdf6685c7a8e6542342ad67791c915fc58c49a0edd563528791db6b9328ddc9ec48fa3
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [0.1.2] - 2025-09-18
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
- Reload operation failures due to missing action methods (#6)
|
14
|
+
- E2E test cleanup issues leaving behind test catlets
|
15
|
+
- Improved test catlet cleanup with comprehensive after-suite cleanup
|
16
|
+
|
17
|
+
|
10
18
|
## [0.1.1] - 2025-09-17
|
11
19
|
|
12
20
|
### Fixed
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module VagrantPlugins
|
4
|
+
module Eryph
|
5
|
+
module Actions
|
6
|
+
class IsState
|
7
|
+
def initialize(app, env, state)
|
8
|
+
@app = app
|
9
|
+
@state = state.to_s.downcase
|
10
|
+
end
|
11
|
+
|
12
|
+
def call(env)
|
13
|
+
# Check if the catlet is in the specified state
|
14
|
+
catlet = Provider.eryph_catlet(env[:machine])
|
15
|
+
env[:result] = catlet && catlet.status&.downcase == @state
|
16
|
+
@app.call(env)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -178,11 +178,12 @@ module VagrantPlugins
|
|
178
178
|
end
|
179
179
|
|
180
180
|
b2.use action_halt
|
181
|
-
b2.use Call,
|
181
|
+
b2.use Call, IsStopped do |env2, b3|
|
182
182
|
if env2[:result]
|
183
|
-
b3.use
|
183
|
+
b3.use action_start
|
184
184
|
else
|
185
|
-
#
|
185
|
+
# Catlet not stopped, continue anyway
|
186
|
+
b3.use action_start
|
186
187
|
end
|
187
188
|
end
|
188
189
|
end
|
@@ -193,6 +194,7 @@ module VagrantPlugins
|
|
193
194
|
action_root = Pathname.new(File.expand_path('actions', __dir__))
|
194
195
|
autoload :ConnectEryph, action_root.join('connect_eryph')
|
195
196
|
autoload :IsCreated, action_root.join('is_created')
|
197
|
+
autoload :IsState, action_root.join('is_state')
|
196
198
|
autoload :IsStopped, action_root.join('is_stopped')
|
197
199
|
autoload :MessageAlreadyCreated, action_root.join('message_already_created')
|
198
200
|
autoload :MessageNotCreated, action_root.join('message_not_created')
|
@@ -204,7 +206,6 @@ module VagrantPlugins
|
|
204
206
|
autoload :PrepareCloudInit, action_root.join('prepare_cloud_init')
|
205
207
|
autoload :ReadSSHInfo, action_root.join('read_ssh_info')
|
206
208
|
autoload :ReadState, action_root.join('read_state')
|
207
|
-
autoload :WaitForOperation, action_root.join('wait_for_operation')
|
208
209
|
end
|
209
210
|
end
|
210
211
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-eryph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dbosoft and eryph contributors
|
@@ -124,6 +124,7 @@ files:
|
|
124
124
|
- lib/vagrant-eryph/actions/create_catlet.rb
|
125
125
|
- lib/vagrant-eryph/actions/destroy_catlet.rb
|
126
126
|
- lib/vagrant-eryph/actions/is_created.rb
|
127
|
+
- lib/vagrant-eryph/actions/is_state.rb
|
127
128
|
- lib/vagrant-eryph/actions/is_stopped.rb
|
128
129
|
- lib/vagrant-eryph/actions/message_already_created.rb
|
129
130
|
- lib/vagrant-eryph/actions/message_not_created.rb
|
@@ -161,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
162
|
- !ruby/object:Gem::Version
|
162
163
|
version: '0'
|
163
164
|
requirements: []
|
164
|
-
rubygems_version: 3.7
|
165
|
+
rubygems_version: 3.6.7
|
165
166
|
specification_version: 4
|
166
167
|
summary: Vagrant provider for eryph
|
167
168
|
test_files: []
|