Sha256: 5a7b7c186d50713aa9e934b8e90592cf09a947a4aa1dae0b2b7a20dc78d3848f
Contents?: true
Size: 783 Bytes
Versions: 4
Compression:
Stored size: 783 Bytes
Contents
#!/usr/bin/env ruby Dir[File.dirname(__FILE__) + "/../vendor/gems/*"].each {|lib| $:.unshift( File.expand_path(lib + "/lib") )} require 'git-style-binary/command' require "rubigen" require 'rubigen/scripts/generate' GitStyleBinary.command do banner <<-EOS Usage: #{$0} #{all_options_string} Create a gen_server skeleton EOS short_desc "Create a gen_server skeleton" opt :name, "The basename of the gen_server to generate", :type => :string run do |command| source = RubiGen::PathSource.new(:application, File.join(File.dirname(__FILE__), "../generators")) RubiGen::Base.reset_sources RubiGen::Base.append_sources source argv = [command[:name]] RubiGen::Scripts::Generate.new.run(argv, :generator => 'gen_server') end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
auser-skelerl-0.0.5 | bin/skelerl-gen_server |
auser-skelerl-0.0.6 | bin/skelerl-gen_server |
auser-skelerl-0.0.7 | bin/skelerl-gen_server |
skelerl-0.0.5 | bin/skelerl-gen_server |