-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
redhat-access/app/models/redhat_access/concerns/organization_extensions.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module RedhatAccess | ||
module Concerns | ||
module OrganizationExtensions | ||
extend ActiveSupport::Concern | ||
included do | ||
has_one :telemetry_configuration, :class_name => "RedhatAccess::TelemetryConfiguration", :dependent => :destroy | ||
end | ||
end | ||
end | ||
end |
12 changes: 12 additions & 0 deletions
12
redhat-access/app/models/redhat_access/telemetry_configuration.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module RedhatAccess | ||
class TelemetryConfiguration < ActiveRecord::Base | ||
include Encryptable | ||
belongs_to :organization ,:class_name => "Organization", :inverse_of => :telemetry_configuration | ||
encrypts :portal_password | ||
attr_accessible :enable_telemetry, :portal_password, :portal_user, :organization_id | ||
|
||
def name | ||
return "TelemetryConfiguration" | ||
end | ||
end | ||
end |
13 changes: 13 additions & 0 deletions
13
redhat-access/db/migrate/20150319153744_create_redhat_access_telemetry_configurations.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class CreateRedhatAccessTelemetryConfigurations < ActiveRecord::Migration | ||
def change | ||
create_table :redhat_access_telemetry_configurations do |t| | ||
t.string :portal_user | ||
t.string :portal_password | ||
t.boolean :enable_telemetry | ||
t.integer :organization_id | ||
|
||
t.timestamps | ||
end | ||
add_index :redhat_access_telemetry_configurations, :organization_id | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module RedhatAccess | ||
VERSION = "0.0.9" | ||
VERSION = "0.1.0" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
%endif | ||
|
||
Name: %{?scl_prefix}rubygem-foreman-%{gem_name} | ||
Version: 0.0.9 | ||
Version: 0.1.0 | ||
Release: 1%{?dist} | ||
Summary: Foreman engine to access Red Hat knowledge base | ||
Group: Development/Languages | ||
|
@@ -112,6 +112,9 @@ cp -pa .%{rubygem_redhat_access_dir}/config/config.yml.example %{buildroot}/etc/ | |
|
||
|
||
%changelog | ||
* Mon Mar 23 2015 Lindani Phiri <[email protected]> - 0.1.0-1 | ||
- Database prep for z stream for RHAI (BZ 1197764) | ||
|
||
* Wed Mar 4 2015 Lindani Phiri <[email protected]> - 0.0.9-1 | ||
- Resolves : bz1197764 | ||
|
||
|