lib/pdk/cli/new/transport.rb in pdk-1.15.0 vs lib/pdk/cli/new/transport.rb in pdk-1.16.0

- old
+ new

@@ -6,11 +6,10 @@ run do |opts, args, _cmd| PDK::CLI::Util.ensure_in_module! transport_name = args[0] - module_dir = Dir.pwd if transport_name.nil? || transport_name.empty? puts command.help exit 1 end @@ -19,9 +18,9 @@ raise PDK::CLI::ExitWithError, _("'%{name}' is not a valid transport name") % { name: transport_name } end require 'pdk/generate/transport' - PDK::Generate::Transport.new(module_dir, transport_name, opts).run + PDK::Generate::Transport.new(PDK::Util.module_root, transport_name, opts).run end end end