Class: Preseason::Recipe::Guard

Inherits:
Preseason::Recipe show all
Defined in:
lib/preseason/recipe/guard.rb

Instance Attribute Summary

Attributes inherited from Preseason::Recipe

#config

Instance Method Summary collapse

Methods inherited from Preseason::Recipe

#initialize, #post_install_hook, #recipe_root

Methods included from Colorize

#ask, #readme, #yes?

Methods included from GeneratorContext

#method_missing

Constructor Details

This class inherits a constructor from Preseason::Recipe

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Preseason::GeneratorContext

Instance Method Details

#prepareObject



2
3
4
5
6
# File 'lib/preseason/recipe/guard.rb', line 2

def prepare
  run 'bundle exec guard init'
  gsub_file 'Guardfile', ":cucumber_env => { 'RAILS_ENV' => 'test' }, ", ''
  gsub_file 'Guardfile', "guard 'rspec' do", "guard 'rspec', :cli => '--drb --format Fuubar --tag focus', :all_after_pass => false, :all_on_start => false do"
end