bin/git_gem_updater.rb in polisher-0.10.2 vs bin/git_gem_updater.rb in polisher-0.11.1
- old
+ new
@@ -2,11 +2,11 @@
# git gem updater
#
# Will checkout an existing gem rpm from distgit,
# and update to the latest version found on http://rubygems.org
#
-# Usage:
+# Usage:
# git_gem_updater.rb -n <gem_name>
#
# Licensed under the MIT License
# Copyright (C) 2013-2014 Red Hat, Inc.
@@ -21,11 +21,11 @@
# read various options from the command line
conf = { :dir => ORIG_DIR,
:user => nil,
:gems => []}
-
+
optparse = OptionParser.new do|opts|
opts.on('-n', '--name GEM', 'gem name' ) do |n|
conf[:gems] << n
end
@@ -40,10 +40,10 @@
opts.on('-h', '--help', 'display this screen' ) do
puts opts
exit
end
end
-
+
optparse.parse!
Polisher::Config.set
unless conf[:user].nil?