From 023ed81cbcb130c0b1a4350db39c0a68f9ec2a26 Mon Sep 17 00:00:00 2001 From: Garrett Rowell Date: Wed, 24 Jan 2024 12:25:55 -0500 Subject: [PATCH] fix LineLength spec --- lib/pdk/cli/convert.rb | 3 ++- lib/pdk/cli/update.rb | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/pdk/cli/convert.rb b/lib/pdk/cli/convert.rb index d8af6bb1a..c309a1812 100644 --- a/lib/pdk/cli/convert.rb +++ b/lib/pdk/cli/convert.rb @@ -18,7 +18,8 @@ module CLI # Write the context information to the debug log PDK.context.to_debug_log - raise PDK::CLI::ExitWithError, '`pdk convert` can only be run from inside a valid module directory.' unless PDK.context.is_a?(PDK::Context::Module) || PDK.context.is_a?(PDK::Context::ControlRepo) + raise PDK::CLI::ExitWithError, '`pdk convert` can only be run from inside a valid module directory.' unless PDK.context.is_a?(PDK::Context::Module) || + PDK.context.is_a?(PDK::Context::ControlRepo) raise PDK::CLI::ExitWithError, 'You can not specify --noop and --force when converting a module' if opts[:noop] && opts[:force] diff --git a/lib/pdk/cli/update.rb b/lib/pdk/cli/update.rb index 73c9bcfb8..9aac532db 100644 --- a/lib/pdk/cli/update.rb +++ b/lib/pdk/cli/update.rb @@ -14,7 +14,8 @@ module CLI # Write the context information to the debug log PDK.context.to_debug_log - raise PDK::CLI::ExitWithError, '`pdk update` can only be run from inside a valid module directory.' unless PDK.context.is_a?(PDK::Context::Module) || PDK.context.is_a?(PDK::Context::ControlRepo) + raise PDK::CLI::ExitWithError, '`pdk update` can only be run from inside a valid module directory.' unless PDK.context.is_a?(PDK::Context::Module) || + PDK.context.is_a?(PDK::Context::ControlRepo) raise PDK::CLI::ExitWithError, 'This module does not appear to be PDK compatible. To make the module compatible with PDK, run `pdk convert`.' unless PDK::Util.module_pdk_compatible?