lib/watir_install/generators/new.rb in watir_install-0.3.0 vs lib/watir_install/generators/new.rb in watir_install-0.3.1
- old
+ new
@@ -6,11 +6,12 @@
module Generators
class New < Thor::Group
include Thor::Actions
argument :name, type: :string, desc: 'The name of the test project'
- argument :no_git, type: :string, default: 'false', desc: 'Do not initialize project with git'
+ argument :base_url, type: :string, required: false, default: '', desc: 'Set a root url for the project'
+ argument :no_git, type: :string, required: false, default: 'false', desc: 'Do not initialize project with git'
def self.source_root
"#{File.dirname(__FILE__)}/new"
end
@@ -55,9 +56,10 @@
template "spec/support/pages/base.rb.tt", "#{name}/spec/support/pages/base.rb"
end
def support_files
template "spec/support/sauce_helpers.rb.tt", "#{name}/spec/support/sauce_helpers.rb"
+ template "spec/support/site.rb.tt", "#{name}/spec/support/site.rb"
end
def bundle
Dir.chdir(name)
system 'bundle install'
\ No newline at end of file