Skip to content

Instantly share code, notes, and snippets.

+ cd /builddir/build/BUILD
+ cd katello-cli-1.5.2
+ PYTHONPATH=src/
+ pylint --rcfile=./etc/spacewalk-pylint.rc --additional-builtins=_ katello
************* Module katello.client.completion
C: 19, 0: Old-style class defined. (old-style-class)
************* Module katello.client.config
C: 55, 0: Trailing whitespace (trailing-whitespace)
************* Module katello.client.lib.async
C:127, 0: Trailing whitespace (trailing-whitespace)
[pulp-gofer]
name=Pulp Gofer Update
baseurl=http://fedorapeople.org/groups/katello/releases/yum/pulp-gofer-f19-x86_64/
enabled=1
gpgcheck=0
[paji@kafka hammer-cli-katello{master}]$ hammer gpg --help
Usage:
hammer gpg [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
list List GPG Keys
[paji@centos foreman{develop}]$ rake db:create
PG::InvalidParameterValue: ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
HINT: Use the same encoding as in the template database, or use template0 as template.
: CREATE DATABASE "foreman" ENCODING = 'UTF8'
/home/paji/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_adapter.rb:650:in `async_exec'
/home/paji/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_adapter.rb:650:in `block in execute'
/home/paji/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
/home/paji/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-3.2.16/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/paji/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
/home/paji/.rvm/gems/
[paji@centos foreman{develop}]$ ktest ../katello/test/actions/headpin/library_create_test.rb
/foreman /foreman
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
-- execute("SET CONSTRAINTS ALL DEFERRED;")
-> 0.0004s
Run options: --seed 34428
# Running tests:
You are using WebMock 1.17.3. VCR 2.8.0 has been tested against WebMock >= 1.8.0, < 1.16, and you are using a newer version. If you experience VCR issues, consider downgrading WebMock as it may fix it.
#!/usr/bin/env bash
FOREMAN_PATH="/foreman"
pushd .
cd $FOREMAN_PATH
if [[ -n $1 ]]
then
KATELLO_PATH='/katello'
RAKE_PATH=`bundle show rake`
ruby -I"lib:test:${KATELLO_PATH}/test:${KATELLO_PATH}/spec" -I"${RAKE_PATH}/lib" \
[paji@centos hammer-cli-katello{master}]$ hammer repository info --id=45
Error: undefined method `try' for {"id"=>1, "name"=>"blah"}:Hash
[paji@centos hammer-cli-katello{master}]$ hammer repository info --id=45
ID: 45
Name: partello
Label: partello
Organization: ACME_Corporation
Red Hat Repository: no
Type: yum
URL: http://partha.fedorapeople.org/test-repos/partello/
curl -s -i -L http://localhost:2375/v1.15/images/search?term=centos
HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 06 May 2015 22:19:51 GMT
Transfer-Encoding: chunked
[{"description":"The official build of CentOS.","is_official":true,"is_trusted":false,"name":"centos","star_count":978}
,{"description":"Ansible on Centos7","is_official":false,"is_trusted":true,"name":"ansible/centos7-ansible","star_count":40}
,{"description":"Centos image with SSH access. For the root password, either set the ROOT_PASS environment variable or check the logs for a randomly generated one.","is_official":false,"is_trusted":true,"name":"tutum/centos","star_count":13}
@parthaa
parthaa / gist:ca4e9e3e688b3fb02b84
Created February 9, 2016 00:56
script to check out my fork
#!/bin/bash
current_dir=${PWD##*/}
remote_fork="git@github.com:parthaa/puppet-${current_dir}.git"
git remote add fork $remote_fork
git fetch fork
@parthaa
parthaa / gist:782c6915218df571dca2
Created February 9, 2016 00:56
script to check out my fork
#!/bin/bash
current_dir=${PWD##*/}
remote_fork="git@github.com:parthaa/puppet-${current_dir}.git"
git remote add fork $remote_fork
git fetch fork