lib/hotplate/cli/init.rb in hotplate-0.0.1 vs lib/hotplate/cli/init.rb in hotplate-0.0.3
- old
+ new
@@ -3,9 +3,10 @@
def java
puts "What is your Team Number? (0000)"
team = gets.chop!.to_i.to_s # Ensures it's a proper number :)
clazz = "#{@path}/src/main/java/frc/team#{team}/#{@name}/RobotModule.java"
jin = File.expand_path "../../java", __FILE__
+ #puts Dir[jin]
FileUtils.cp_r "#{jin}/.", @path
build = File.read File.join(@path, "build.gradle")
build = build.gsub "%%TEAM", team
build = build.gsub "%%NAME", @name