Sha256: 8df93142a48f1717c0671f77ab9701971756f6bd7e3d0945d9af2273f43205ee
Contents?: true
Size: 1.18 KB
Versions: 3
Compression:
Stored size: 1.18 KB
Contents
desc 'Instill Inochi into current directory.' task :init do unless project_name = ENV[:project] raise ArgumentError, 'project name not specified' end library_name = Engine.calc_library_name(project_name) package_name = ENV[:package] || Engine.calc_package_name(library_name) project_version = '0.0.0' project_release = Time.now.strftime('%F') command_file = "bin/#{package_name}" create_from_rbs binding, command_file, 'command' chmod 0755, command_file create_from_rbs binding, 'inochi.opts' create_from_rbs binding, "lib/#{package_name}.rb", 'library' create_from_rbs binding, "lib/#{package_name}/inochi.rb" create_from_rbs binding, 'test/runner', 'test_runner' chmod 0755, 'test/runner' create_from_rbs binding, 'test/test_helper.rb', 'test_helper.rb' create_from_rbs binding, "test/#{package_name}_test.rb", 'library_test.rb' create_from_rbs binding, 'LICENSE' create_from_rbs binding, 'README' create_from_rbs binding, 'MANUAL' create_from_rbs binding, 'USAGE' create_from_rbs binding, 'EXAMPLES' create_from_rbs binding, 'HACKING' create_from_rbs binding, 'HISTORY' create_from_rbs binding, 'CREDITS' create_from_rbs binding, 'FURTHER' end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
inochi-3.0.0 | lib/inochi/tasks/1-init.rake |
inochi-2.0.1 | lib/inochi/tasks/1-init.rake |
inochi-2.0.0 | lib/inochi/tasks/init.rake |