Sha256: d0a51d0cf8df7c8c68719c54f22d92db6878f47fce16707b422a51f1e4cbbc92
Contents?: true
Size: 694 Bytes
Versions: 3
Compression:
Stored size: 694 Bytes
Contents
module Gram module Gem ACTIONS = { create: { description: "Creates a new gem with the given NAME", arguments: %w(NAME [--rails]), }, } class << self def banner out = "Available actions:\n" ACTIONS.each_pair do |action, metadata| out << "\n\t#{action} #{metadata[:arguments].join(' ')}\t\t#{metadata[:description]}" end out end # ACTIONS def create(name, *options) puts "Gram::Gem generating gem scaffold for #{name}..." Generator.new.generate(name, options) puts "Generated on ./#{name} :)" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gram-0.3.0 | lib/gram/gem.rb |
gram-0.2.0 | lib/gram/gem.rb |
gram-0.1.0 | lib/gram/gem.rb |