lib/core/extract.rb in radon-0.1.2 vs lib/core/extract.rb in radon-0.1.3
- old
+ new
@@ -25,9 +25,15 @@
def extract_c(target)
extract_zip(Radon::Environments.getTargetOf('c'), target)
end
+def extract_crystal(target)
+ extract_zip(Radon::Environments.getTargetOf('crystal'), target)
+ find_and_replace_all(target, '{{NAME}}', projectify(target))#.split('-').collect(&:capitalize).join)
+ find_and_replace_all(target, '{{CAPSNAME}}', classify(target))
+end
+
# Extracts some zip data to the passed destination
def extract_zip(file, destination)
puts "Creating project under #{File.expand_path(destination)}" unless $quiet
create(destination)
FileUtils.mkdir_p(destination)