lib/config_scripts/seeds/seed_set.rb
# This method writes the data for this seed set to its seed folder.
#
# It will create the folder and then write the file for each seed type
# that has been defined.
This method writes the data for this seed set to its seed folder.
It will create the folder and then write the file for each seed type
that has been defined.
This method writes the data for this seed set to its seed folder . It will create the folder and then write the file for each seed type that has been defined .
def write
        folder_path = Rails.root.join('db', 'seeds', 'data', self.folder)
        FileUtils.mkdir_p(folder_path)
        puts "Writing seeds for #{self.name} to #{folder_path}"
        self.seed_types.each do |klass, seed_type|
          seed_type.write_to_folder(folder_path)
        end
      end
def write folder_path = Rails . root . join ( 'db' , 'seeds' , 'data' , self . folder ) FileUtils . mkdir_p ( folder_path ) puts "Writing seeds for #{self.name} to #{folder_path}" self . seed_types . each do | klass , seed_type | seed_type . write_to_folder ( folder_path ) end end
This method writes the data for this seed set to its seed folder.
This method writes the data for this seed set to its seed folder .