Class: Baja::Blast
- Inherits:
-
Object
- Object
- Baja::Blast
- Defined in:
- lib/baja.rb
Class Method Summary collapse
Class Method Details
.now! ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/baja.rb', line 14 def self.now! baja = YAML.load_file('baja.yml') baja = JSON.parse(baja.to_json,:symbolize_names => true) baja[:factories].each do |dew| puts "drinking" drink = IO.popen("bundle show #{dew}").readline.strip FactoryGirl.definition_file_paths << Pathname.new("#{drink}/spec/factories") puts FactoryGirl.definition_file_paths end puts "throwing it down!" FactoryGirl.definition_file_paths.uniq! @@in_namespace = false end |