Added generator, ace-gen works!
This commit is contained in:
parent
4970d59081
commit
a1596e5642
20 changed files with 183 additions and 2 deletions
28
project_generator/content/tasks.rb
Executable file
28
project_generator/content/tasks.rb
Executable file
|
@ -0,0 +1,28 @@
|
|||
#!/usr/bin/env bundle exec nake
|
||||
# encoding: utf-8
|
||||
|
||||
Encoding.default_internal = "utf-8"
|
||||
Encoding.default_external = "utf-8"
|
||||
|
||||
# Task.tasks.default_proc = lambda { |*| Task[:generate] }
|
||||
|
||||
Task.new(:generate) do |task|
|
||||
task.description = "Generate static HTML."
|
||||
|
||||
task.define do
|
||||
sh "./boot.rb"
|
||||
end
|
||||
end
|
||||
|
||||
Task.new(:rsync) do |task|
|
||||
task.description = "Rsync the output to server."
|
||||
|
||||
# config
|
||||
task.config[:user] = "TODO"
|
||||
task.config[:server] = "TODO"
|
||||
task.config[:path] = "TODO"
|
||||
|
||||
task.define do |options|
|
||||
sh "rsync -av --delete output/ #{config[:user]}@#{config[:server]}:#{config[:path]}"
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue