Method: Forgejo::MigrateRepoOptions#valid?
- Defined in:
- lib/forgejo/models/migrate_repo_options.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
270 271 272 273 274 275 276 277 |
# File 'lib/forgejo/models/migrate_repo_options.rb', line 270 def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @clone_addr.nil? return false if @repo_name.nil? service_validator = EnumAttributeValidator.new('String', ["git", "github", "gitea", "gitlab", "gogs", "onedev", "gitbucket", "codebase"]) return false unless service_validator.valid?(@service) true end |