Sha256: 5d6b7cfe59bf16d10ede680fe3b5c310ce32d54f1e023436d8b03debe4d02d33
Contents?: true
Size: 696 Bytes
Versions: 1
Compression:
Stored size: 696 Bytes
Contents
require 'thor' require 'venom/generators/workshop' module Venom class Generator < Thor desc "workshop NAME", "Create a new workshop." method_option :driver, aliases: "-d", type: :string, required: false, desc: "Use Symbiont to drive the browser. (Valid value is 'watir'.)" method_option :library, aliases: "-l", type: :boolean, desc: "Use a shared library directory." def workshop(name) puts "Name of workshop: #{name}" driver = options[:driver].nil? ? 'watir' : options[:driver] library = options[:library] == true ? 'true' : 'false' Venom::Generators::Workshop.start([name, driver, library]) end end # class: Generator end # module: Venom
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
venom-0.0.2 | lib/venom/generator.rb |