Sha256: 2948e4e30d5753e3ea9b24d6c6584f6378de11588408da367e44d30bede85337
Contents?: true
Size: 415 Bytes
Versions: 1
Compression:
Stored size: 415 Bytes
Contents
class Gem::Commands::PluginCommand < Gem::Command def initialize super("plugin", "Generate skeleton for a rubygems plugin") end def execute name = options[:args].first name = name.tr('-', '_') klass = name.split('_').map(&:capitalize).join generator_args = [] generator_args << name generator_args << klass RubygemsPluginGenerator::Generator.start(generator_args) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubygems_plugin_generator-0.2.0 | lib/rubygems/commands/plugin_command.rb |