diff --git a/ruby/lib/jam_ruby/models/icecast_admin_authentication.rb b/ruby/lib/jam_ruby/models/icecast_admin_authentication.rb new file mode 100644 index 000000000..3abd1696c --- /dev/null +++ b/ruby/lib/jam_ruby/models/icecast_admin_authentication.rb @@ -0,0 +1,9 @@ +module JamRuby + class IcecastAdminAuthentication < ActiveRecord::Base + + self.primary_key = 'id' + + validates :source_password, length: {minimum: 5} + + end +end \ No newline at end of file diff --git a/ruby/lib/jam_ruby/models/icecast_directory.rb b/ruby/lib/jam_ruby/models/icecast_directory.rb new file mode 100644 index 000000000..7d5fd4b45 --- /dev/null +++ b/ruby/lib/jam_ruby/models/icecast_directory.rb @@ -0,0 +1,9 @@ +module JamRuby + class IcecastDirectory < ActiveRecord::Base + + self.primary_key = 'id' + + + + end +end \ No newline at end of file diff --git a/ruby/lib/jam_ruby/models/icecast_limit.rb b/ruby/lib/jam_ruby/models/icecast_limit.rb new file mode 100644 index 000000000..ea6b0e727 --- /dev/null +++ b/ruby/lib/jam_ruby/models/icecast_limit.rb @@ -0,0 +1,10 @@ +module JamRuby + class IcecastLimit < ActiveRecord::Base + + self.primary_key = 'id' + + validates :clients, numericality: {only_integer: true} + + + end +end \ No newline at end of file diff --git a/ruby/lib/jam_ruby/models/icecast_listen_socket.rb b/ruby/lib/jam_ruby/models/icecast_listen_socket.rb new file mode 100644 index 000000000..f6d13f7c0 --- /dev/null +++ b/ruby/lib/jam_ruby/models/icecast_listen_socket.rb @@ -0,0 +1,8 @@ +module JamRuby + class IcecastListenSocket < ActiveRecord::Base + + self.primary_key = 'id' + + + end +end \ No newline at end of file diff --git a/ruby/lib/jam_ruby/models/icecast_logging.rb b/ruby/lib/jam_ruby/models/icecast_logging.rb new file mode 100644 index 000000000..457afc2a2 --- /dev/null +++ b/ruby/lib/jam_ruby/models/icecast_logging.rb @@ -0,0 +1,9 @@ +module JamRuby + class IcecastLogging < ActiveRecord::Base + + self.primary_key = 'id' + + + + end +end \ No newline at end of file diff --git a/ruby/lib/jam_ruby/models/icecast_mastersvr_relay.rb b/ruby/lib/jam_ruby/models/icecast_mastersvr_relay.rb new file mode 100644 index 000000000..2ff4239f0 --- /dev/null +++ b/ruby/lib/jam_ruby/models/icecast_mastersvr_relay.rb @@ -0,0 +1,7 @@ +module JamRuby + class IcecastMastersvrRelay < ActiveRecord::Base + + self.primary_key = 'id' + + end +end \ No newline at end of file diff --git a/ruby/lib/jam_ruby/models/icecast_mount.rb b/ruby/lib/jam_ruby/models/icecast_mount.rb new file mode 100644 index 000000000..6627f3ddd --- /dev/null +++ b/ruby/lib/jam_ruby/models/icecast_mount.rb @@ -0,0 +1,9 @@ +module JamRuby + class IcecastMount < ActiveRecord::Base + + self.primary_key = 'id' + + has_one :authentication, :class_name => "IcecastUserAuthentication" + + end +end \ No newline at end of file diff --git a/ruby/lib/jam_ruby/models/icecast_path.rb b/ruby/lib/jam_ruby/models/icecast_path.rb new file mode 100644 index 000000000..434d7839c --- /dev/null +++ b/ruby/lib/jam_ruby/models/icecast_path.rb @@ -0,0 +1,9 @@ +module JamRuby + class IcecastPath < ActiveRecord::Base + + self.primary_key = 'id' + + + + end +end \ No newline at end of file diff --git a/ruby/lib/jam_ruby/models/icecast_relay.rb b/ruby/lib/jam_ruby/models/icecast_relay.rb new file mode 100644 index 000000000..e0228df0f --- /dev/null +++ b/ruby/lib/jam_ruby/models/icecast_relay.rb @@ -0,0 +1,8 @@ +module JamRuby + class IcecastRelay < ActiveRecord::Base + + self.primary_key = 'id' + + + end +end \ No newline at end of file diff --git a/ruby/lib/jam_ruby/models/icecast_sercurity.rb b/ruby/lib/jam_ruby/models/icecast_sercurity.rb new file mode 100644 index 000000000..510fd95c3 --- /dev/null +++ b/ruby/lib/jam_ruby/models/icecast_sercurity.rb @@ -0,0 +1,9 @@ +module JamRuby + class IcecastSecurity < ActiveRecord::Base + + self.primary_key = 'id' + + + + end +end \ No newline at end of file diff --git a/ruby/lib/jam_ruby/models/icecast_server.rb b/ruby/lib/jam_ruby/models/icecast_server.rb new file mode 100644 index 000000000..f015f35ac --- /dev/null +++ b/ruby/lib/jam_ruby/models/icecast_server.rb @@ -0,0 +1,18 @@ +module JamRuby + class IcecastServer < ActiveRecord::Base + + self.primary_key = 'id' + + has_one :limit, :class_name => "JamRuby::IcecastLimit" + has_one :adminauth, :class_name => "JamRuby::IcecastAdminAuthentication" + has_one :directory, :class_name => "JamRuby::IcecastDirectory" + has_one :misc, :class_name => "JamRuby::IcecastServermisc" + has_many :listen_sockets, :class_name => "JamRuby::IcecastListenSocket" + has_one :master_relay, :class_name => "JamRuby::IcecastMastersvrRelay" + has_one :relay, :class_name => "JamRuby::IcecastRelay" + has_many :mounts, :class_name => "JamRuby::IcecastMount" + has_one :path, :class_name => "JamRuby::IcecastPath" + has_one :logging, :class_name => "JamRuby::IcecastLogging" + has_one :security, :class_name => "JamRuby::IceCastSecurity" + end +end \ No newline at end of file diff --git a/ruby/lib/jam_ruby/models/icecast_servermisc.rb b/ruby/lib/jam_ruby/models/icecast_servermisc.rb new file mode 100644 index 000000000..d620f032e --- /dev/null +++ b/ruby/lib/jam_ruby/models/icecast_servermisc.rb @@ -0,0 +1,7 @@ +module JamRuby + class IcecastServermisc < ActiveRecord::Base + + self.primary_key = 'id' + + end +end \ No newline at end of file diff --git a/ruby/lib/jam_ruby/models/icecast_user_authentication.rb b/ruby/lib/jam_ruby/models/icecast_user_authentication.rb new file mode 100644 index 000000000..ec6974093 --- /dev/null +++ b/ruby/lib/jam_ruby/models/icecast_user_authentication.rb @@ -0,0 +1,8 @@ +module JamRuby + class IcecastUserAuthentication < ActiveRecord::Base + + self.primary_key = 'id' + + + end +end \ No newline at end of file