[DRE-commits] [librarian-puppet] 87/153: Replace / with - when calling update
Stig Sandbeck Mathisen
ssm at debian.org
Wed Jun 1 20:30:47 UTC 2016
This is an automated email from the git hooks/post-receive script.
ssm pushed a commit to branch master
in repository librarian-puppet.
commit f2a702ff51d2453abb54a18620c91e6ee4e89778
Author: Carlos Sanchez <carlos at apache.org>
Date: Wed Feb 25 12:56:11 2015 +0100
Replace / with - when calling update
Add a warning
---
lib/librarian/puppet/cli.rb | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/lib/librarian/puppet/cli.rb b/lib/librarian/puppet/cli.rb
index 913a76b..acca1cf 100644
--- a/lib/librarian/puppet/cli.rb
+++ b/lib/librarian/puppet/cli.rb
@@ -7,6 +7,7 @@ require 'librarian/puppet/action'
module Librarian
module Puppet
class Cli < Librarian::Cli
+ include Librarian::Puppet::Util
module Particularity
def root_module
@@ -69,6 +70,12 @@ module Librarian
install!
end
+ # only used to replace / to - in the module names
+ def update(*names)
+ warn("Usage of module/name is deprecated, use module-name") if names.any? {|n| n.include?("/")}
+ super(*names.map{|n| normalize_name(n)})
+ end
+
desc "package", "Cache the puppet modules in vendor/puppet/cache."
option "quiet", :type => :boolean, :default => false
option "verbose", :type => :boolean, :default => false
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/librarian-puppet.git
More information about the Pkg-ruby-extras-commits
mailing list