Sha256: 81ae7315345e3d0ab3243f52d028c530440d467dd95ed6dc32fca1233f069e68
Contents?: true
Size: 926 Bytes
Versions: 1
Compression:
Stored size: 926 Bytes
Contents
module Bundler module Geminabox class CLI::Gem attr_reader :options, :gem_name, :thor def initialize(options, gem_name, thor) @options = options @gem_name = gem_name @thor = thor end def run name = gem_name.chomp("/") # remove trailing slash if present target = File.join(Dir.pwd, name) underscored_name = name.tr('-', '_') opts = { :rubygems => ENV['GEMINABOX'] || 'https://your.rubygems.org', :name => name, :underscored_name => underscored_name, :test => options[:test], :ext => options[:ext] } opts[:force] = true thor.template(File.join("newgem/Gemfile.tt"), File.join(target, "Gemfile"), opts) thor.template(File.join("newgem/Rakefile.tt"), File.join(target, "Rakefile"), opts) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bundler-geminabox-0.0.1 | lib/bundler/geminabox/cli/gem.rb |