lib/watir_install/cli.rb in watir_install-0.3.0 vs lib/watir_install/cli.rb in watir_install-0.3.1

- old
+ new

@@ -5,13 +5,14 @@ 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 :base_url, type: :string, desc: "Set a root url for the project" def new(name) - WatirInstall::Generators::New.start([name, options[:no_git]]) + WatirInstall::Generators::New.start([name, options[:base_url], options[:no_git]]) end desc "generate <generated_type>", "Generate a new object" method_option :url, type: :string, desc: "Do not initialize project with git" method_option :form, type: :string, desc: "Do not initialize project with git" @@ -43,10 +44,10 @@ WatirInstall::Generators::Test.start([klass, form, *args]) end desc "generate_scaffold <Class>", "Generate collection of data, pages and tests" - def generate_scaffold(klass, url, form, *args) + def generate_scaffold(klass, url, _form, *args) WatirInstall::Generators::Test.start([klass, 'true']) WatirInstall::Generators::Data.start([klass, *args]) new_url = url.nil? ? '' : "#{url}/new"