diff --git a/.rubocop.yml b/.rubocop.yml index 9909d8e..ea9207d 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,8 +1,9 @@ --- require: - - chefstyle + - cookstyle/chefstyle AllCops: + TargetRubyVersion: 3.1 Include: - "**/*.rb" Exclude: diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..ecfdffb --- /dev/null +++ b/.yamllint @@ -0,0 +1,6 @@ +--- +extends: default +rules: + line-length: + max: 256 + level: warning diff --git a/Gemfile b/Gemfile index 2fbbe01..1e3e478 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/Rakefile b/Rakefile index 45e3349..902b0de 100644 --- a/Rakefile +++ b/Rakefile @@ -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" diff --git a/lib/kitchen/driver/hyperv.rb b/lib/kitchen/driver/hyperv.rb index 6e475f5..9fe8bd5 100644 --- a/lib/kitchen/driver/hyperv.rb +++ b/lib/kitchen/driver/hyperv.rb @@ -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