Date: Thu, 13 Mar 2014 18:49:27 +0000 (UTC) From: Steve Wills <swills@FreeBSD.org> 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 Message-ID: <201403131849.s2DInR8u033451@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <kvedulv@kvedulv.de> 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 <kvedulv@kvedulv.de> +# $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 <bsd.port.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403131849.s2DInR8u033451>