Sha256: e6a6fd2c8b3eff00fd0a8a0f56c0b7ef6e88d2ce20b932f2545d03a6f91506ea
Contents?: true
Size: 904 Bytes
Versions: 3
Compression:
Stored size: 904 Bytes
Contents
require 'quickl' require 'ggem' require "ggem/version" module GGemCLI # # ggem command line tool # # SYNOPSIS # #{command_name} [options] GEM_NAME # # OPTIONS # #{summarized_options} # # DESCRIPTION # This is a command line tool for using ggem # class Ggem < Quickl::Command(__FILE__, __LINE__) VERSION = GGem::VERSION # Install options options do |opt| @ggem_cli_opts = {} opt.on_tail('-h', '--help', "Show this help message") do raise Quickl::Help end opt.on_tail('-v', '--version', 'Show version and exit') do raise Quickl::Exit, "#{Quickl.program_name} #{VERSION}" end end # Run the command def execute(args) raise Quickl::Help if args.size < 1 g = GGem::Gem.new(`pwd`.strip, *args) g.save puts "created gem and initialized git repo in #{g.path}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ggem-1.3.0 | lib/ggem/cli.rb |
ggem-1.2.1 | lib/ggem/cli.rb |
ggem-1.2.0 | lib/ggem/cli.rb |