lib/pdk/cli/new/class.rb in pdk-1.10.0 vs lib/pdk/cli/new/class.rb in pdk-1.11.0

- old
+ new

@@ -22,9 +22,11 @@ unless Util::OptionValidator.valid_class_name?(class_name) 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(module_dir, class_name, opts).run end end end