def create_new_role(project_root, role_name)
      # Check if the role name is valid
      return error _('wizard.role.invalid_name')%{words: Bebox::RESERVED_WORDS.join(', ')} unless valid_puppet_class_name?(role_name)
      # Check if the role exist
      return error(_('wizard.role.name_exist')%{role: role_name}) if role_exists?(project_root, role_name)
      # Role creation
      role = Bebox::Role.new(role_name, project_root)
      output = role.create
      ok _('wizard.role.creation_success')
      return output
    end
def create_new_role(project_root, role_name)
      # Check if the role name is valid
      return error _('wizard.role.invalid_name')%{words: Bebox::RESERVED_WORDS.join(', ')} unless valid_puppet_class_name?(role_name)
      # Check if the role exist
      return error(_('wizard.role.name_exist')%{role: role_name}) if role_exists?(project_root, role_name)
      # Role creation
      role = Bebox::Role.new(role_name, project_root)
      output = role.create
      ok _('wizard.role.creation_success')
      return output
    end
Create a new role