lib/transcriptic/project_generator.rb in transcriptic-0.2.1 vs lib/transcriptic/project_generator.rb in transcriptic-0.2.2
- old
+ new
@@ -18,11 +18,10 @@
default: false
def generate
empty_directory target.join('app')
empty_directory target.join('project')
- empty_directory target.join('lib')
template 'app/Main.erb', target.join('app/Main.scala')
template 'project/Build.erb', target.join('project/Build.scala')
copy_file 'project/build.properties', target.join('project/build.properties')
copy_file 'project/plugins.sbt', target.join('project/plugins.sbt')
@@ -45,9 +44,13 @@
options[:author]
end
def email
options[:email]
+ end
+
+ def author?
+ not (options[:author] == "John Appleseed")
end
def copyright_year
Time.now.year
end
\ No newline at end of file