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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cad2bc14ba7af950709fb3f80cdf55d2ee85fac7a2435aa9d7d3a7945de673a2
4
- data.tar.gz: e958d240f827057f2a3eb732730e145cf78344eaab32458eacee191e2927f8e3
3
+ metadata.gz: 3d8510d9544d0730e1569249a684e99e925219f3e8c3076f9b3e1bb8535291ec
4
+ data.tar.gz: 2eb2c0b65b421828fd05c7341dee2c03f2c98bb9a9148992e09712b74288b22f
5
5
  SHA512:
6
- metadata.gz: 645482478604881d513c7413ef18ad01d24bbb553ca8b9e9aa430a620f3df13ce1244f14a18655414973627664c718cbace5d7be6395eb2d9cb62019bb85b0c2
7
- data.tar.gz: 9d82d19f964e787bde0e35bc982132486cc6cd8840ef1188ab4fc6ce0fd5de23e9a562fbedc6d39c691172ce132891b90dae4e882445e2222f8943d0224d4f59
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, WaitForState, :stopped, 120 do |env2, b3|
181
+ b2.use Call, IsStopped do |env2, b3|
182
182
  if env2[:result]
183
- b3.use action_up
183
+ b3.use action_start
184
184
  else
185
- # TODO: we couldn't reach :stopped, what now?
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module VagrantPlugins
4
4
  module Eryph
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  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.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.2
165
+ rubygems_version: 3.6.7
165
166
  specification_version: 4
166
167
  summary: Vagrant provider for eryph
167
168
  test_files: []