trustieforge/lib/tasks/rubyzip.rake

24 lines
435 B
Ruby
Raw Normal View History

2014-04-15 14:33:19 +08:00
desc "nyan ruby zip operation"
task :zip do
puts "will building zip tmp files sweeper."
end
namespace :zip do
desc "ruby zip sweeper"
task :rubyzip_clean do
puts "ruby zip sweeping..."
end
end
desc "create tmp file, to test"
file 'tmp/test.yml' do
require 'yaml'
var = {
:name => "name",
:age => "age",
:agent => "agent"
}
File.open('tmp/test.yml', 'w') do |f|
f.write YAML.dump({'conf' => var })
end
end