Sha256: d3aaa00e8bd6e18e0cbecf7cc0dd4e91153ad1e1df682a61f021ace09e6c0133

Contents?: true

Size: 552 Bytes

Versions: 1

Compression:

Stored size: 552 Bytes

Contents

require 'thor'
require 'watir_install/generators/new_project'

module WatirInstall
  class CLI < Thor

    desc "new <project_name>", "Create a new test project"
    method_option :no_git, type: :boolean, desc: "Do not initialize project with git"
    method_option :test_runner, type: :string, desc: "Do not initialize project with git"


    def new(name)
      no_git = options[:no_git] ? 'true' : 'false'
      test_runner = options[:test_runner]
      WatirInstall::Generators::NewProject.start([name, no_git, test_runner])
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watir_install-0.2.1 lib/watir_install/cli.rb