This file contains hidden or 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
| $ git grep include |grep -i helper | |
| activation_keys_controller.rb:15: include ActivationKeysHelper | |
| api/repositories_controller.rb:14: include KatelloUrlHelper | |
| application_controller.rb:20: include Notifications::ControllerHelper | |
| auto_complete_search.rb:14: include SearchHelper | |
| changesets_controller.rb:15: include BreadcrumbHelper | |
| content_search_controller.rb:15: include ContentSearchHelper | |
| password_resets_controller.rb:14: include PasswordResetsHelper | |
| repositories_controller.rb:15: include KatelloUrlHelper | |
| roles_controller.rb:22: include BreadcrumbHelper |
This file contains hidden or 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
| # katello environment | |
| Usage: katello <options> environment <command> | |
| Supported Commands: | |
| create create an environment | |
| delete delete an environment | |
| info list a specific environment | |
| list list known environments | |
| update update an environment | |
| content list content in an environment |
This file contains hidden or 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
| def promote from_env, to_env | |
| # TODO: add logic to promote parent templates | |
| # when that feature arrives | |
| promote_products from_env, to_env | |
| promote_repos from_env, to_env | |
| promote_packages from_env, to_env | |
| promote_template from_env, to_env | |
| [] | |
| end |
This file contains hidden or 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
| Procedure C.1. Uninstalling System Engine. WARNING: This procedure will erase httpd, tomcat6, mongodb, postgres and all ruby packages on your system. If you are using this system for purposes other than System Engine you may need to change the below removal procedure to ensure you are not removing required packages and data. | |
| Shutdown all CloudForms System Engine services: | |
| # katello-service stop | |
| # kill -9 `ps -aef | grep katello | grep -v grep | awk '{print $2}'` | |
| # kill -9 `ps -aef | grep delayed_job | grep -v grep | awk '{print $2}'` | |
| Uninstall CloudForms System Engine packages: |
This file contains hidden or 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
| # /usr/share/candlepin/cpdb --drop --create | |
| Dropping candlepin database | |
| Creating candlepin database | |
| Loading candlepin schema | |
| ########## ERROR ############ | |
| Error running command: liquibase --driver=org.postgresql.Driver --classpath=/usr/share/java/postgresql-jdbc.jar:/var/lib/tomcat6/webapps/candlepin/WEB-INF/classes/ --changeLogFile=db/changelog/changelog-create.xml --url=jdbc:postgresql:candlepin --username=candlepin migrate | |
| Status code: 256 | |
| Command output: Error: Could not find or load main class liquibase.integration.commandline.Main | |
| Traceback (most recent call last): |
This file contains hidden or 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
| irb(main):001:0> require 'rubygems' | |
| => true | |
| irb(main):002:0> require 'simpleidn' | |
| => true | |
| irb(main):005:0> SimpleIDN.to_ascii("møllerriis") | |
| => "xn--mllerriis-l8a" | |
| irb(main):006:0> greek = 'Τὴ γλῶσσα μοῦ ἔδωσαν ἑλληνικὴ' | |
| => "Τὴ γλῶσσα μοῦ ἔδωσαν ἑλληνικὴ" | |
| irb(main):008:0> SimpleIDN.to_ascii(greek) | |
| => "xn-- -4jd3fcmm6awmegakue3a0fag1lt104e7bau9lya092acn" |
This file contains hidden or 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
| $ git diff Gemfile | |
| diff --git a/src/Gemfile b/src/Gemfile | |
| index fec88c2..c26d7a9 100644 | |
| --- a/src/Gemfile | |
| +++ b/src/Gemfile | |
| @@ -87,6 +87,7 @@ group :test, :development do | |
| #needed to generate routes in javascript | |
| gem "js-routes", :require => 'js_routes' | |
| + gem 'rails-dev-boost', :git => 'git://github.com/thedarkone/rails-dev-boost.git', :require => 'rails_development_boost' |
This file contains hidden or 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
| # katello -u admin -p admin ping | |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| Katello Status | |
| Status Service Result Duration Message | |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| ok | |
| candlepin ok 38ms | |
| candlepin_auth ok 50ms | |
| elasticsearch ok 24ms |
This file contains hidden or 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
| echo "Initializing Candlepin database" | |
| sudo /usr/share/candlepin/cpdb --drop --create | |
| sudo /usr/share/candlepin/cpsetup -s -k `sudo cat /etc/katello/keystore_password-file` | |
This file contains hidden or 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
| api :POST, "/organizations", "Create an organization" | |
| param :name, String, :desc => "name for the organization" | |
| param :description, String, :desc => "description" | |
| def create | |
| label = params[:label] | |
| if params[:label].blank? | |
| # Convert name to label | |
| label = convert_str_to_label(params[:name]) | |
| end | |
| render :json => Organization.create!(:name => params[:name], :description => params[:description], :label => label).to_json |