Class: RakeFileTemplate
- Defined in:
- lib/generators/templates/common/rake_file_template.rb
Instance Method Summary collapse
Methods inherited from Template
Constructor Details
This class inherits a constructor from Template
Instance Method Details
#body ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/generators/templates/common/rake_file_template.rb', line 4 def body " require 'yaml'\n\n desc 'Selects browser for automation run'\n task :select_browser, [:browser] do |_t, args|\n config = YAML.load_file('config/config.yml')\n config['browser'] = args.browser\n File.write('config/config.yml', config.to_yaml)\n end\n EOF\nend\n" |