From owner-svn-ports-head@FreeBSD.ORG Thu Mar 13 18:49:28 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D41B2B1D; Thu, 13 Mar 2014 18:49:28 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BF833F5C; Thu, 13 Mar 2014 18:49:28 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2DInSYe033459; Thu, 13 Mar 2014 18:49:28 GMT (envelope-from swills@svn.freebsd.org) Received: (from swills@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2DInR8u033451; Thu, 13 Mar 2014 18:49:27 GMT (envelope-from swills@svn.freebsd.org) Message-Id: <201403131849.s2DInR8u033451@svn.freebsd.org> From: Steve Wills Date: Thu, 13 Mar 2014 18:49:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r348116 - in head/sysutils: . rubygem-hammer_cli_foreman rubygem-hammer_cli_foreman/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Mar 2014 18:49:28 -0000 Author: swills Date: Thu Mar 13 18:49:27 2014 New Revision: 348116 URL: http://svnweb.freebsd.org/changeset/ports/348116 QAT: https://qat.redports.org/buildarchive/r348116/ Log: This Hammer CLI plugin contains set of commands for Foreman. WWW: https://github.com/theforeman/hammer-cli-foreman PR: ports/187483 Submitted by: Michael Moll Added: head/sysutils/rubygem-hammer_cli_foreman/ head/sysutils/rubygem-hammer_cli_foreman/Makefile (contents, props changed) head/sysutils/rubygem-hammer_cli_foreman/distinfo (contents, props changed) head/sysutils/rubygem-hammer_cli_foreman/files/ head/sysutils/rubygem-hammer_cli_foreman/files/patch-lib__hammer_cli_foreman__commands.rb (contents, props changed) head/sysutils/rubygem-hammer_cli_foreman/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Thu Mar 13 18:40:16 2014 (r348115) +++ head/sysutils/Makefile Thu Mar 13 18:49:27 2014 (r348116) @@ -806,6 +806,7 @@ SUBDIR += rubygem-guard-minitest SUBDIR += rubygem-guard-rspec SUBDIR += rubygem-hammer_cli + SUBDIR += rubygem-hammer_cli_foreman SUBDIR += rubygem-hiera SUBDIR += rubygem-hiera-json SUBDIR += rubygem-hiera-puppet Added: head/sysutils/rubygem-hammer_cli_foreman/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/rubygem-hammer_cli_foreman/Makefile Thu Mar 13 18:49:27 2014 (r348116) @@ -0,0 +1,21 @@ +# Created by: Michael Moll +# $FreeBSD$ + +PORTNAME= hammer_cli_foreman +PORTVERSION= 0.0.18 +CATEGORIES= sysutils ruby +MASTER_SITES= RG + +MAINTAINER= ruby@FreeBSD.org +COMMENT= Foreman commands for Hammer CLI + +LICENSE= GPLv3 + +RUN_DEPENDS= rubygem-foreman_api>=0.1.11:${PORTSDIR}/devel/rubygem-foreman_api \ + rubygem-hammer_cli>=0.0.18:${PORTSDIR}/sysutils/rubygem-hammer_cli + +USE_RUBY= yes +USE_RUBYGEMS= yes +RUBYGEM_AUTOPLIST= yes + +.include Added: head/sysutils/rubygem-hammer_cli_foreman/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/rubygem-hammer_cli_foreman/distinfo Thu Mar 13 18:49:27 2014 (r348116) @@ -0,0 +1,2 @@ +SHA256 (rubygem/hammer_cli_foreman-0.0.18.gem) = 97a7310e001726bf8bc0004bb9f08c87650e224fac351b1e3f8b2dc593e05337 +SIZE (rubygem/hammer_cli_foreman-0.0.18.gem) = 48640 Added: head/sysutils/rubygem-hammer_cli_foreman/files/patch-lib__hammer_cli_foreman__commands.rb ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/rubygem-hammer_cli_foreman/files/patch-lib__hammer_cli_foreman__commands.rb Thu Mar 13 18:49:27 2014 (r348116) @@ -0,0 +1,28 @@ +--- lib/hammer_cli_foreman/commands.rb.orig 2014-03-12 11:03:33.000000000 +0100 ++++ lib/hammer_cli_foreman/commands.rb 2014-03-12 11:03:49.000000000 +0100 +@@ -60,9 +60,9 @@ + end + + def execute +- if respond_to?(:page) && respond_to?(:per_page) +- self.page ||= 1 +- self.per_page ||= HammerCLI::Settings.get(:ui, :per_page) || DEFAULT_PER_PAGE ++ if respond_to?(:option_page) && respond_to?(:option_per_page) ++ self.option_page ||= 1 ++ self.option_per_page ||= HammerCLI::Settings.get(:ui, :per_page) || DEFAULT_PER_PAGE + browse_collection + else + retrieve_and_print +@@ -79,10 +79,10 @@ + while list_next do + d = retrieve_and_print + +- if (d.size >= self.per_page.to_i) && interactive? ++ if (d.size >= self.option_per_page.to_i) && interactive? + answer = ask("List next page? (Y/n): ").downcase + list_next = (answer == 'y' || answer == '') +- self.page += 1 ++ self.option_page += 1 + else + list_next = false + end Added: head/sysutils/rubygem-hammer_cli_foreman/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/rubygem-hammer_cli_foreman/pkg-descr Thu Mar 13 18:49:27 2014 (r348116) @@ -0,0 +1,3 @@ +This Hammer CLI plugin contains set of commands for Foreman. + +WWW: https://github.com/theforeman/hammer-cli-foreman