24 lines
435 B
Ruby
24 lines
435 B
Ruby
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 |