Class: Baja::Blast
- Inherits:
-
Object
- Object
- Baja::Blast
- Defined in:
- lib/baja.rb
Constant Summary collapse
- @@definition_file_paths =
%w(factories test/factories spec/factories).map { |path| File.(path) }
- @@baja =
JSON.parse(File.read('baja.json'),:symbolize_names => true)
Class Method Summary collapse
Class Method Details
.baja ⇒ Object
33 34 35 |
# File 'lib/baja.rb', line 33 def self.baja @@baja end |
.definition_file_paths ⇒ Object
36 37 38 |
# File 'lib/baja.rb', line 36 def self.definition_file_paths @@definition_file_paths end |
.now! ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/baja.rb', line 15 def self.now! unless Baja::Blast.baja[:factories].nil? @@baja[:factories].each do |dew| drink = IO.popen("bundle show #{dew[:name]}").readline.strip unless dew[:dependencies].nil? dew[:dependencies].each do |d| load("#{drink}/#{d[:path]}" ) end end @@definition_file_paths << Pathname.new("#{drink}/spec/factories").to_s @@definition_file_paths.uniq! puts @@definition_file_paths end end end |