Sha256: 302078cbb2141006f76b2d80b638e490150ca0bc166da61f163dec29fd8a0a9d

Contents?: true

Size: 766 Bytes

Versions: 5

Compression:

Stored size: 766 Bytes

Contents

require 'bundler/cli'

module Bundler
  module Geminabox
    class CLI < Thor
      include Thor::Actions

      desc "gem GEM [OPTIONS]", "Creates a skeleton for creating a rubygem"
      method_option :ext, :type => :boolean, :default => false, :banner => "Generate the boilerplate for C extension code"
      method_option :test, :type => :string, :lazy_default => 'rspec', :aliases => '-t', :banner =>
        "Generate a test directory for your library: 'rspec' is the default, but 'minitest' is also supported."

      def gem(name)
        Bundler::CLI.start(ARGV, :debug => true)

        require 'bundler/geminabox/cli/gem'
        self.class.source_root(File.join(__dir__, 'templates'))
        Gem.new(options, name, self).run
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bundler-geminabox-1.0.0 lib/bundler/geminabox/cli.rb
bundler-geminabox-0.1.2 lib/bundler/geminabox/cli.rb
bundler-geminabox-0.1.1 lib/bundler/geminabox/cli.rb
bundler-geminabox-0.1.0 lib/bundler/geminabox/cli.rb
bundler-geminabox-0.0.1 lib/bundler/geminabox/cli.rb