Sha256: 203d5916c56b7c81032cc37443e930d6d4fb44af08a676ce1cf57ba77d09347b

Contents?: true

Size: 629 Bytes

Versions: 7

Compression:

Stored size: 629 Bytes

Contents

module DockerContainerWizardStates
  class ExposedPort < DockerParameter
    belongs_to :environment,  :foreign_key => :reference_id, :inverse_of => :exposed_ports,
                              :class_name => 'DockerContainerWizardStates::Environment'
    validates :key,  :uniqueness => { :scope => :reference_id },
                      :numericality => { :only_integer => true,
                                         :greater_than => 0,
                                         :less_than_or_equal_to => 655_35 }
    validates :value, :presence => true,
                      :inclusion => { :in => %w(tcp udp) }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
foreman_docker-5.0.0 app/models/docker_container_wizard_states/exposed_port.rb
foreman_docker-4.1.1 app/models/docker_container_wizard_states/exposed_port.rb
foreman_docker-4.1.0 app/models/docker_container_wizard_states/exposed_port.rb
foreman_docker-4.0.0 app/models/docker_container_wizard_states/exposed_port.rb
foreman_docker-3.2.1 app/models/docker_container_wizard_states/exposed_port.rb
foreman_docker-3.2.0 app/models/docker_container_wizard_states/exposed_port.rb
foreman_docker-3.1.0 app/models/docker_container_wizard_states/exposed_port.rb