lib/pdk/cli/new/class.rb in pdk-1.17.0 vs lib/pdk/cli/new/class.rb in pdk-1.18.0
- old
+ new
@@ -23,9 +23,10 @@
raise PDK::CLI::ExitWithError, _("'%{name}' is not a valid class name") % { name: class_name }
end
PDK::CLI::Util.analytics_screen_view('new_class', opts)
- PDK::Generate::PuppetClass.new(PDK::Util.module_root, class_name, opts).run
+ updates = PDK::Generate::PuppetClass.new(PDK.context, class_name, opts).run
+ PDK::CLI::Util::UpdateManagerPrinter.print_summary(updates, tense: :past)
end
end
end