tasks/project.rake in glyph-0.1.0 vs tasks/project.rake in glyph-0.2.0
- old
+ new
@@ -14,12 +14,14 @@
yaml_dump Glyph::PROJECT/'snippets.yml', {:test => "This is a \nTest snippet"}
# Create files
file_copy Glyph::HOME/'document.glyph', Glyph::PROJECT/'document.glyph'
config = yaml_load Glyph::HOME/'config.yml'
config[:document][:filename] = dir.basename.to_s
+ config[:document][:title] = dir.basename.to_s
config[:document][:author] = ENV['USER'] || ENV['USERNAME']
+ config.delete(:structure)
yaml_dump Glyph::PROJECT/'config.yml', config
- info "Project '#{dir.basename}' created successfully."
+ Glyph.info "Project '#{dir.basename}' created successfully."
end
desc "Add a new text file to the project"
task :add, [:file] do |t, args|
Glyph.enable 'project:add'