Sha256: 5b8555adeb22f093e45ea9c19a833073da1a43d6aa2fff169449b8f1f70b1f30
Contents?: true
Size: 500 Bytes
Versions: 2
Compression:
Stored size: 500 Bytes
Contents
class CucumbaGenerator < Rails::Generator::NamedBase attr_reader :server_names def initialize(runtime_args, runtime_options={}) super @server_names = runtime_args.uniq end def manifest record do |m| m.directory "config" m.template 'config.yml', "config/cucumba.yml" m.directory "script" m.file 'cucumba', 'script/cucumba', { :chmod => 0755 } end end private def banner 'Usage: ./script/generate cucumba server1 server2 server3' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cucumba-0.0.6 | generators/cucumba/cucumba_generator.rb |
cucumba-0.0.5 | generators/cucumba/cucumba_generator.rb |