Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
require:
- chefstyle
- cookstyle/chefstyle

AllCops:
TargetRubyVersion: 3.1
Include:
- "**/*.rb"
Exclude:
Expand Down
6 changes: 6 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
extends: default
rules:
line-length:
max: 256
level: warning
8 changes: 4 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ group :development do
gem "pry-stack_explorer"
end

group :chefstyle do
gem "chefstyle"
end

group :docs do
gem "yard"
end


group :cookstyle do
gem "cookstyle"
end
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ desc "Run all test suites"
task test: :unit

begin
require "chefstyle"
require "cookstyle/chefstyle"
require "rubocop/rake_task"
RuboCop::RakeTask.new(:style) do |task|
task.options += ["--display-cop-names", "--no-color"]
end
rescue LoadError
puts "chefstyle is not available. (sudo) gem install chefstyle to do style checking."
puts "cookstyle/chefstyle is not available. (sudo) gem install cookstyle to do style checking."
end

desc "Run all quality tasks"
Expand Down
8 changes: 4 additions & 4 deletions lib/kitchen/driver/hyperv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,10 @@ def connection
backend = remote_hyperv ? "winrm" : "local"

train = Train.create(backend, {
host: config[:hyperv_server],
user: config[:hyperv_username],
password: config[:hyperv_password],
ssl: config[:hyperv_ssl],
host: config[:hyperv_server],
user: config[:hyperv_username],
password: config[:hyperv_password],
ssl: config[:hyperv_ssl],
self_signed: config[:hyperv_insecure],
})
@connection = train.connection
Expand Down
Loading