Sha256: 477a6020b354239bdb7f41af628cd6ff3c83c29e9d48674a8e4a95dd114d5dc7
Contents?: true
Size: 497 Bytes
Versions: 2
Compression:
Stored size: 497 Bytes
Contents
require "bun_bo/version" class BunBo def run(input_path) if File.file?(input_path) folder_path, file_name = File.split(input_path) extension = File.extname(file_name) base_name = File.basename(file_name, extension) test_folder = File.join('spec', folder_path) test_path = File.join(test_folder, "#{base_name}_spec#{extension}") FileUtils.mkdir_p(test_folder) File.write(test_path, '') else puts "File does not exists" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bun_bo-0.1.1 | lib/bun_bo.rb |
bun_bo-0.1.0 | lib/bun_bo.rb |