-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
79 lines (64 loc) · 1.18 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#rake
#task :default do
# puts 'Hello World!'
#end
#rake ring
desc 'Ring the bell'
task :ring do
puts "Bell is ringing."
end
#rake enter
#зависемость
desc 'Enter home'
task :enter => :ring do
puts "Entering home!"
end
#rake -T
file 'products.sql' => 'products.xml' do
# build SQL INSERT clause and save it in products.sql file,
# basing on products.xml datafile
end
#manipulate_files
task :manipulate_files do
mkdir 'new_dir'
mv 'new_dir', 'lukasz'
chmod 0777, 'lukasz'
touch 'lukasz/wrobel.txt'
#rm_rf 'lukasz'
end
task :rubyrake do
ruby 'rubyrake.rb'
end
#rake article:create_article
namespace :article do
desc 'create a article'
task :create_article do
puts 'create A article'
end
desc 'edit a article'
task :edit_article do
puts 'edit A article'
end
end
task :today do
Rake::Task['article:create_article'].invoke
Rake::Task['article:edit_article'].invoke
end
=begin
desc 'create file foo.txt'
file 'foo.txt' do
touch 'foo.txt'
end
desc 'foo.txt => bar.txt'
file 'foo.txt' => 'bar.txt' do
cp 'foo.txt', 'bar.txt'
end
=end
task :name_1 do
puts 'name_1'
end
task :name_2 do
puts 'name_2'
end
task :name_3 => ['name_1', 'name_2'] do
end