Skip to content

Commit

Permalink
Fix a few chefstyle issues
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Smith <tsmith84@gmail.com>
  • Loading branch information
tas50 committed Nov 3, 2022
1 parent 75bdd71 commit 8bcd399
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions lib/kitchen/lifecycle_hooks.rb
Expand Up @@ -43,13 +43,11 @@ def initialize(config, state_file)
# @param block [Proc] Block of code implementing the lifecycle phase.
# @return [void]
def run_with_hooks(phase, state_file, &block)
begin
run(phase, :pre)
yield
run(phase, :post)
ensure
run(phase, :finally)
end
run(phase, :pre)
yield
run(phase, :post)
ensure
run(phase, :finally)
end

# @return [Kitchen::StateFile]
Expand Down
2 changes: 1 addition & 1 deletion lib/kitchen/verifier/base.rb
Expand Up @@ -73,7 +73,7 @@ def call(state)
conn.upload(sandbox_dirs, config[:root_path])
debug("Transfer complete")
conn.execute(prepare_command)

begin
conn.execute(run_command)
ensure
Expand Down

0 comments on commit 8bcd399

Please sign in to comment.