diff options
Diffstat (limited to 'qi')
-rwxr-xr-x | qi | 70 |
1 files changed, 35 insertions, 35 deletions
@@ -7,7 +7,7 @@ <http://search.sisudoc.org> ** Download: <http://www.jus.uio.no/sisu/download> -** Copyright: (C) 2007 - 2015 Ralph Amissah +** Copyright: (C) 2015 Ralph Amissah ** License: @@ -182,40 +182,6 @@ module SiSUconf #end end end - desc 'gem --create --build --install', - 'gem create build and install' - options \ - :create => :boolean, - :build => :boolean, - :install => :boolean, - :git_version_number => :boolean, - :is => :boolean - def gem - if options[:is] - puts Version_info.version_number_info_stable - end - if options[:create] - version=(options[:git_version_number]) \ - ? :version_git - : :version_standard - Gemspecs::Current.create_stable(version) - puts 'created gemspec' \ - if options[:verbose] - end - if options[:build] - Gemspecs::Current.build_stable - puts 'built gem' \ - if options[:verbose] - end - if options[:install] - Gemspecs::Current.install_stable - puts 'installed gem, version: stable' \ - if options[:verbose] - end - unless options.length > 0 - system("#{$called_as} help gem") - end - end desc 'pkg', 'package maintenance tasks, ' \ + 'of no general interest ' \ @@ -251,6 +217,40 @@ module SiSUconf system("#{$called_as} pkg --tip") end end + desc 'gem --create --build --install', + 'gem create build and install' + options \ + :create => :boolean, + :build => :boolean, + :install => :boolean, + :git_version_number => :boolean, + :is => :boolean + def gem + if options[:is] + puts Version_info.version_number_info_stable + end + if options[:create] + version=(options[:git_version_number]) \ + ? :version_git + : :version_standard + Gemspecs::Current.create_stable(version) + puts 'created gemspec' \ + if options[:verbose] + end + if options[:build] + Gemspecs::Current.build_stable + puts 'built gem' \ + if options[:verbose] + end + if options[:install] + Gemspecs::Current.install_stable + puts 'installed gem, version: stable' \ + if options[:verbose] + end + unless options.length > 0 + system("#{$called_as} help gem") + end + end end end begin |