[PATCH aeolus-image-rubygem 1/2] Aeolus::Image::Katello models
Matt Wagner
matt.wagner at redhat.com
Thu May 24 18:51:06 UTC 2012
---
lib/aeolus_image.rb | 8 +++
lib/aeolus_image/model/katello/activation_key.rb | 23 +++++++
lib/aeolus_image/model/katello/base.rb | 74 ++++++++++++++++++++++
lib/aeolus_image/model/katello/changeset.rb | 23 +++++++
lib/aeolus_image/model/katello/distribution.rb | 23 +++++++
lib/aeolus_image/model/katello/environment.rb | 30 +++++++++
lib/aeolus_image/model/katello/erratum.rb | 23 +++++++
lib/aeolus_image/model/katello/filter.rb | 23 +++++++
lib/aeolus_image/model/katello/gpg_key.rb | 23 +++++++
lib/aeolus_image/model/katello/ldap_group.rb | 23 +++++++
lib/aeolus_image/model/katello/organization.rb | 36 +++++++++++
lib/aeolus_image/model/katello/package.rb | 23 +++++++
lib/aeolus_image/model/katello/permission.rb | 23 +++++++
lib/aeolus_image/model/katello/ping.rb | 23 +++++++
lib/aeolus_image/model/katello/product.rb | 25 +++++++
lib/aeolus_image/model/katello/provider.rb | 24 +++++++
lib/aeolus_image/model/katello/repository.rb | 25 +++++++
lib/aeolus_image/model/katello/role.rb | 23 +++++++
lib/aeolus_image/model/katello/system.rb | 23 +++++++
lib/aeolus_image/model/katello/task.rb | 23 +++++++
lib/aeolus_image/model/katello/template.rb | 23 +++++++
lib/aeolus_image/model/katello/uebercert.rb | 23 +++++++
lib/aeolus_image/model/katello/user.rb | 25 +++++++
23 files changed, 592 insertions(+), 0 deletions(-)
create mode 100644 lib/aeolus_image/model/katello/activation_key.rb
create mode 100644 lib/aeolus_image/model/katello/base.rb
create mode 100644 lib/aeolus_image/model/katello/changeset.rb
create mode 100644 lib/aeolus_image/model/katello/distribution.rb
create mode 100644 lib/aeolus_image/model/katello/environment.rb
create mode 100644 lib/aeolus_image/model/katello/erratum.rb
create mode 100644 lib/aeolus_image/model/katello/filter.rb
create mode 100644 lib/aeolus_image/model/katello/gpg_key.rb
create mode 100644 lib/aeolus_image/model/katello/ldap_group.rb
create mode 100644 lib/aeolus_image/model/katello/organization.rb
create mode 100644 lib/aeolus_image/model/katello/package.rb
create mode 100644 lib/aeolus_image/model/katello/permission.rb
create mode 100644 lib/aeolus_image/model/katello/ping.rb
create mode 100644 lib/aeolus_image/model/katello/product.rb
create mode 100644 lib/aeolus_image/model/katello/provider.rb
create mode 100644 lib/aeolus_image/model/katello/repository.rb
create mode 100644 lib/aeolus_image/model/katello/role.rb
create mode 100644 lib/aeolus_image/model/katello/system.rb
create mode 100644 lib/aeolus_image/model/katello/task.rb
create mode 100644 lib/aeolus_image/model/katello/template.rb
create mode 100644 lib/aeolus_image/model/katello/uebercert.rb
create mode 100644 lib/aeolus_image/model/katello/user.rb
diff --git a/lib/aeolus_image.rb b/lib/aeolus_image.rb
index 6d428f8..3cbff00 100644
--- a/lib/aeolus_image.rb
+++ b/lib/aeolus_image.rb
@@ -32,4 +32,12 @@ require File.join(File.dirname(__FILE__), 'aeolus_image/model/factory', 'target_
require File.join(File.dirname(__FILE__), 'aeolus_image/model/factory', 'builder')
require File.join(File.dirname(__FILE__), 'aeolus_image', 'active_resource_oauth_client')
+require File.join(File.dirname(__FILE__), 'aeolus_image/model/katello', 'base')
+katello_models = %w(activation_key changeset distribution environment erratum filter
+ gpg_key ldap_group organization package permission ping product provider
+ repository role system task template uebercert user)
+katello_models.each do |model|
+ require File.join(File.dirname(__FILE__), 'aeolus_image/model/katello', model)
+end
+
require File.join(File.dirname(__FILE__), 'aeolus_image', 'import')
diff --git a/lib/aeolus_image/model/katello/activation_key.rb b/lib/aeolus_image/model/katello/activation_key.rb
new file mode 100644
index 0000000..fa2ff35
--- /dev/null
+++ b/lib/aeolus_image/model/katello/activation_key.rb
@@ -0,0 +1,23 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class ActivationKey < Base
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/base.rb b/lib/aeolus_image/model/katello/base.rb
new file mode 100644
index 0000000..7332f10
--- /dev/null
+++ b/lib/aeolus_image/model/katello/base.rb
@@ -0,0 +1,74 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class Base < ActiveResource::Base
+ self.format = :json
+ self.ssl_options = {:verify_mode => OpenSSL::SSL::VERIFY_NONE}
+
+ def self.config=(conf)
+ %w(site user password).each do |prop|
+ self.send("#{prop}=", conf[prop.to_sym]) if conf[prop.to_sym].present?
+ end
+ end
+
+ def id_value
+ self.send(self.class.id_field)
+ end
+
+ class << self
+ # Make it easier to define nested associations
+ def has_many(association_name)
+ plural = association_name.to_s
+ id_name = self.to_s.foreign_key.to_sym
+ define_method(plural) do
+ klass = "Aeolus::Image::Katello::#{plural.singularize.classify}".constantize
+ our_class = self.class.name.demodulize.tableize
+ # FIXME - Swapping out the prefix temporarily feels really hackish
+ _prefix = klass.prefix.to_s
+ klass.prefix = "#{Base.prefix}#{our_class}/:#{id_name}/"
+ ret = klass.find(:all, :params => {id_name => id_value})
+ klass.prefix = _prefix
+ ret
+ end
+ end
+
+ # Allow defining the 'id' for a field where it is not named 'id'
+ def id_field(primary_key=nil)
+ if primary_key.present?
+ @id_field = primary_key
+ else
+ @id_field ||= 'id'
+ end
+ end
+
+ ## Remove format from the url for resources
+ def element_path(id, prefix_options = {}, query_options = nil)
+ prefix_options, query_options = split_options(prefix_options) if query_options.nil?
+ "#{prefix(prefix_options)}#{collection_name}/#{id}#{query_string(query_options)}"
+ end
+
+ ## Remove format from the url for collections
+ def collection_path(prefix_options = {}, query_options = nil)
+ prefix_options, query_options = split_options(prefix_options) if query_options.nil?
+ "#{prefix(prefix_options)}#{collection_name}#{query_string(query_options)}"
+ end
+ end
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/changeset.rb b/lib/aeolus_image/model/katello/changeset.rb
new file mode 100644
index 0000000..2e5c910
--- /dev/null
+++ b/lib/aeolus_image/model/katello/changeset.rb
@@ -0,0 +1,23 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class Changeset < Base
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/distribution.rb b/lib/aeolus_image/model/katello/distribution.rb
new file mode 100644
index 0000000..fd5ce0d
--- /dev/null
+++ b/lib/aeolus_image/model/katello/distribution.rb
@@ -0,0 +1,23 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class Distribution < Base
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/environment.rb b/lib/aeolus_image/model/katello/environment.rb
new file mode 100644
index 0000000..a7936e2
--- /dev/null
+++ b/lib/aeolus_image/model/katello/environment.rb
@@ -0,0 +1,30 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class Environment < Base
+
+ has_many :consumers
+ has_many :systems
+ has_many :activation_keys
+ has_many :products
+ has_many :changesets
+ has_many :templates
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/erratum.rb b/lib/aeolus_image/model/katello/erratum.rb
new file mode 100644
index 0000000..d4818d6
--- /dev/null
+++ b/lib/aeolus_image/model/katello/erratum.rb
@@ -0,0 +1,23 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class Errata < Base
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/filter.rb b/lib/aeolus_image/model/katello/filter.rb
new file mode 100644
index 0000000..73d2f94
--- /dev/null
+++ b/lib/aeolus_image/model/katello/filter.rb
@@ -0,0 +1,23 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class Filters < Base
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/gpg_key.rb b/lib/aeolus_image/model/katello/gpg_key.rb
new file mode 100644
index 0000000..0c5f72f
--- /dev/null
+++ b/lib/aeolus_image/model/katello/gpg_key.rb
@@ -0,0 +1,23 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class GpgKey < Base
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/ldap_group.rb b/lib/aeolus_image/model/katello/ldap_group.rb
new file mode 100644
index 0000000..32d7ef0
--- /dev/null
+++ b/lib/aeolus_image/model/katello/ldap_group.rb
@@ -0,0 +1,23 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class LdapGroup < Base
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/organization.rb b/lib/aeolus_image/model/katello/organization.rb
new file mode 100644
index 0000000..14bbb71
--- /dev/null
+++ b/lib/aeolus_image/model/katello/organization.rb
@@ -0,0 +1,36 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class Organization < Base
+ has_many :uebercerts
+ has_many :environments
+ has_many :systems
+ has_many :filters
+ has_many :products
+ has_many :repositories
+ has_many :pools
+ has_many :servicelevels
+ has_many :gpg_keys
+ has_many :sync_plans
+
+ id_field :cp_key
+
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/package.rb b/lib/aeolus_image/model/katello/package.rb
new file mode 100644
index 0000000..c6c71a4
--- /dev/null
+++ b/lib/aeolus_image/model/katello/package.rb
@@ -0,0 +1,23 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class Package < Base
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/permission.rb b/lib/aeolus_image/model/katello/permission.rb
new file mode 100644
index 0000000..1d5a6b7
--- /dev/null
+++ b/lib/aeolus_image/model/katello/permission.rb
@@ -0,0 +1,23 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class Permission < Base
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/ping.rb b/lib/aeolus_image/model/katello/ping.rb
new file mode 100644
index 0000000..546badf
--- /dev/null
+++ b/lib/aeolus_image/model/katello/ping.rb
@@ -0,0 +1,23 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class Ping < Base
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/product.rb b/lib/aeolus_image/model/katello/product.rb
new file mode 100644
index 0000000..343ad7f
--- /dev/null
+++ b/lib/aeolus_image/model/katello/product.rb
@@ -0,0 +1,25 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class Product < Base
+ has_many :repositories
+ has_many :sync_plans
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/provider.rb b/lib/aeolus_image/model/katello/provider.rb
new file mode 100644
index 0000000..87e6e1b
--- /dev/null
+++ b/lib/aeolus_image/model/katello/provider.rb
@@ -0,0 +1,24 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class Provider < Base
+ # Providers don't have a nice neat URL structure AFAICT -- mawagner
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/repository.rb b/lib/aeolus_image/model/katello/repository.rb
new file mode 100644
index 0000000..3cffa95
--- /dev/null
+++ b/lib/aeolus_image/model/katello/repository.rb
@@ -0,0 +1,25 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class Repository < Base
+ has_many :package_groups
+ has_many :package_group_categories
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/role.rb b/lib/aeolus_image/model/katello/role.rb
new file mode 100644
index 0000000..0441592
--- /dev/null
+++ b/lib/aeolus_image/model/katello/role.rb
@@ -0,0 +1,23 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class Role < Base
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/system.rb b/lib/aeolus_image/model/katello/system.rb
new file mode 100644
index 0000000..6ad5ee1
--- /dev/null
+++ b/lib/aeolus_image/model/katello/system.rb
@@ -0,0 +1,23 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class System < Base
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/task.rb b/lib/aeolus_image/model/katello/task.rb
new file mode 100644
index 0000000..4004370
--- /dev/null
+++ b/lib/aeolus_image/model/katello/task.rb
@@ -0,0 +1,23 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class Task < Base
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/template.rb b/lib/aeolus_image/model/katello/template.rb
new file mode 100644
index 0000000..8cec76e
--- /dev/null
+++ b/lib/aeolus_image/model/katello/template.rb
@@ -0,0 +1,23 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class Template < Base
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/uebercert.rb b/lib/aeolus_image/model/katello/uebercert.rb
new file mode 100644
index 0000000..5e4faff
--- /dev/null
+++ b/lib/aeolus_image/model/katello/uebercert.rb
@@ -0,0 +1,23 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class Uebercert < Base
+ end
+ end
+ end
+end
diff --git a/lib/aeolus_image/model/katello/user.rb b/lib/aeolus_image/model/katello/user.rb
new file mode 100644
index 0000000..9048254
--- /dev/null
+++ b/lib/aeolus_image/model/katello/user.rb
@@ -0,0 +1,25 @@
+#
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+module Aeolus
+ module Image
+ module Katello
+ class User < Base
+ has_many :roles
+ has_many :owners
+ end
+ end
+ end
+end
--
1.7.7.6
More information about the aeolus-devel
mailing list