tesler 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/VERSION +1 -1
- data/example/main.rb +7 -10
- metadata +3 -14
- data/example/dest/file1 +0 -0
- data/example/dest/file2 +0 -0
- data/example/dest/file4 +0 -0
- data/example/dest/renamed/file6 +0 -0
- data/example/dest/renamed/file7 +0 -1
- data/example/dest/subdir1/file3 +0 -0
- data/example/dest/subdir1/file5 +0 -0
- data/example/dest/subdir1/subdir3/file8 +0 -0
- data/example/dest/subdir1/subdir3/renamed +0 -0
- data/example/dest/subdir2/file6 +0 -0
- data/example/dest/subdir2/file7 +0 -1
data/.gitignore
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/example/main.rb
CHANGED
@@ -2,37 +2,34 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
2
2
|
|
3
3
|
require 'tesler'
|
4
4
|
|
5
|
-
#
|
5
|
+
# delete destination directory
|
6
6
|
FileUtils.rm_r("dest") if File.exists?("dest")
|
7
7
|
|
8
8
|
directory 'dest' do
|
9
9
|
|
10
|
-
#
|
10
|
+
# copy files into the dest dir
|
11
11
|
copy 'src\file1'
|
12
12
|
copy 'src\file2'
|
13
13
|
copy 'src\subdir1\file4'
|
14
14
|
|
15
|
-
#
|
15
|
+
# create a sub-directory and copy files into it
|
16
16
|
directory 'subdir1' do
|
17
17
|
copy 'src\file3'
|
18
18
|
copy 'src\subdir1\file5'
|
19
|
-
|
20
|
-
# copie avec un chemin absolu
|
21
|
-
copy 'c:\temp'
|
22
19
|
|
23
|
-
#
|
20
|
+
# a sub-directory in the sub-directory
|
24
21
|
directory 'subdir3' do
|
25
22
|
copy 'src\file8'
|
26
23
|
|
27
|
-
#
|
24
|
+
# copy a file and rename it
|
28
25
|
copy 'src\file9', :rename => 'renamed'
|
29
26
|
end
|
30
27
|
end
|
31
28
|
|
32
|
-
#
|
29
|
+
# copy an entire directory
|
33
30
|
copy 'src\subdir2'
|
34
31
|
|
35
|
-
#
|
32
|
+
# copy an entire directory and rename it
|
36
33
|
copy 'src\subdir2', :rename => 'renamed'
|
37
34
|
|
38
35
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tesler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Rawane ZOSSOU
|
@@ -48,17 +48,6 @@ files:
|
|
48
48
|
- README.md
|
49
49
|
- Rakefile
|
50
50
|
- VERSION
|
51
|
-
- example/dest/file1
|
52
|
-
- example/dest/file2
|
53
|
-
- example/dest/file4
|
54
|
-
- example/dest/renamed/file6
|
55
|
-
- example/dest/renamed/file7
|
56
|
-
- example/dest/subdir1/file3
|
57
|
-
- example/dest/subdir1/file5
|
58
|
-
- example/dest/subdir1/subdir3/file8
|
59
|
-
- example/dest/subdir1/subdir3/renamed
|
60
|
-
- example/dest/subdir2/file6
|
61
|
-
- example/dest/subdir2/file7
|
62
51
|
- example/main.rb
|
63
52
|
- example/src/file1
|
64
53
|
- example/src/file2
|
data/example/dest/file1
DELETED
File without changes
|
data/example/dest/file2
DELETED
File without changes
|
data/example/dest/file4
DELETED
File without changes
|
data/example/dest/renamed/file6
DELETED
File without changes
|
data/example/dest/renamed/file7
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
aaaaaaaaaaaaaa
|
data/example/dest/subdir1/file3
DELETED
File without changes
|
data/example/dest/subdir1/file5
DELETED
File without changes
|
File without changes
|
File without changes
|
data/example/dest/subdir2/file6
DELETED
File without changes
|
data/example/dest/subdir2/file7
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
aaaaaaaaaaaaaa
|