class Transcriptic::ProjectGenerator
Public Instance Methods
autoprotocol_version()
click to toggle source
# File lib/transcriptic/project_generator.rb, line 45 def autoprotocol_version Transcriptic::AUTOPROTOCOL_VERSION end
copyright_year()
click to toggle source
# File lib/transcriptic/project_generator.rb, line 73 def copyright_year Time.now.year end
description()
click to toggle source
# File lib/transcriptic/project_generator.rb, line 49 def description options[:description] end
email()
click to toggle source
# File lib/transcriptic/project_generator.rb, line 65 def email options[:email] end
generate()
click to toggle source
# File lib/transcriptic/project_generator.rb, line 23 def generate empty_directory target.join('app') empty_directory target.join('project') version 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') copy_file 'README.md', target.join('README.md') template 'LICENSE.erb', target.join('LICENSE') template 'Labfile.erb', target.join('Labfile') Transcriptic::DependenciesGenerator.new([File.join(Dir.pwd, name), []], options).invoke_all end
group()
click to toggle source
# File lib/transcriptic/project_generator.rb, line 53 def group options[:group] end
update_build_version(labfile)
click to toggle source
# File lib/transcriptic/project_generator.rb, line 40 def update_build_version(labfile) @version = labfile.options[:version] template 'project/Build.erb', target.join('project/Build.scala'), force: true end
version()
click to toggle source
# File lib/transcriptic/project_generator.rb, line 57 def version @version = options[:version] end