app_generators/watircraft/watircraft_generator.rb in bret-watircraft-0.4.3 vs app_generators/watircraft/watircraft_generator.rb in bret-watircraft-0.4.4
- old
+ new
@@ -54,10 +54,12 @@
m.dependency "install_rubigen_scripts", [destination_root, 'watircraft'],
:shebang => options[:shebang], :collision => :ask
m.template "site.rb.erb", "lib/#{@site}.rb", :collision => :skip
m.template "environments.yml.erb", "config/environments.yml", :collision => :skip
+
+ m.readme "readme.txt"
end
end
@@new_directories =
%w(
@@ -102,9 +104,9 @@
# for each option, extract it into a local variable (and create an "attr_reader :author" at the top)
# Templates can access these value via the attr_reader-generated methods, but not the
# raw instance variable value.
# @author = options[:author]
@site = options[:site]
- @driver = options[:driver] || :watir
+ @driver = options[:driver] || 'watir'
end
end