Sha256: 9eaa52af33389f668a14eef6c750b3e45916048b1022f8ac9ee4ece40284fd81
Contents?: true
Size: 542 Bytes
Versions: 4
Compression:
Stored size: 542 Bytes
Contents
require 'thor' require 'automation_wizard/generators/project' module AutomationWizard class CLI < Thor desc "testproject <project_name>", "Create a new test project" method_option :pageobject_driver, type: :string, required: false, desc: "Use the PageObject gem to drive browsers. Valid values are 'watir' and 'selenium'" def testproject(name) driver = options[:pageobject_driver].nil? ? 'none' : options[:pageobject_driver] AutomationWizard::Generators::Project.start([name, driver]) end end end
Version data entries
4 entries across 4 versions & 1 rubygems