Skip to content

Commit

Permalink
fix LineLength spec
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettrowell committed Jan 24, 2024
1 parent a28e43b commit 023ed81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/pdk/cli/convert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
3 changes: 2 additions & 1 deletion lib/pdk/cli/update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down

0 comments on commit 023ed81

Please sign in to comment.