_plugins/crate_gen.rb
def save_crate_cache(crates)
      puts "Saving crate cache..."
      FileUtils.mkdir_p(File.join(__dir__, "../_tmp"))
      File.open(File.join(__dir__, "../_tmp/crates_generated.yaml"), 'w') do |f|
        f.write "# This file is generated - do not edit it manually\n\n"
        f.write crates.to_yaml
      end
    end
# Save all the collected data to crates_generated.yaml
Save all the collected data to crates_generated.yaml
Save all the collected data to crates_generated . yaml
def save_crate_cache(crates)
      puts "Saving crate cache..."
      FileUtils.mkdir_p(File.join(__dir__, "../_tmp"))
      File.open(File.join(__dir__, "../_tmp/crates_generated.yaml"), 'w') do |f|
        f.write "# This file is generated - do not edit it manually\n\n"
        f.write crates.to_yaml
      end
    end
def save_crate_cache ( crates ) puts "Saving crate cache..." FileUtils . mkdir_p ( File . join ( __dir__ , "../_tmp" ) ) File . open ( File . join ( __dir__ , "../_tmp/crates_generated.yaml" ) , 'w' ) do | f | f . write "# This file is generated - do not edit it manually\n\n" f . write crates . to_yaml end end
Save all the collected data to crates_generated.yaml
Save all the collected data to crates_generated . yaml
crates