architecture 6.0.7 → 6.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/architecture/dsl.rb +8 -8
- data/lib/architecture/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77cef8f4006085fab3d01746dcd4d50cf823ca95
|
4
|
+
data.tar.gz: 75a50e04de056026b1e4d982f0e50b839aa5b9e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7536121505504e5dc05a697987ef6e59a0ae54c129ced6ea8a50fb00762247c17ba98fbf87e46b20e50a67114ccfbe3eabe587e2f48232c5f5927910e8170bd
|
7
|
+
data.tar.gz: 8a021c722f9dacf424652f5a4d803ceeee307ea907381e70ff0a710abd7cbc97125094bc537e71bb91970eba41e9c68af4984927addf60461d70aae8851f8f2d
|
data/lib/architecture/dsl.rb
CHANGED
@@ -15,7 +15,7 @@ module Architecture
|
|
15
15
|
a = Entity.new(id: directory || file, prefix: @source)
|
16
16
|
b = Entity.new(id: as || directory || file, prefix: @destination)
|
17
17
|
|
18
|
-
@output.print("#{indentention}Copying {#{truncate(a.
|
18
|
+
@output.print("#{indentention}Copying {#{truncate(a.to_s)}} to {#{truncate(b.to_s)}}")
|
19
19
|
|
20
20
|
Copy.new(source: a, destination: b, context: context).call
|
21
21
|
|
@@ -30,7 +30,7 @@ module Architecture
|
|
30
30
|
a = Entity.new(id: directory || file, prefix: @source)
|
31
31
|
b = Entity.new(id: as, prefix: @destination)
|
32
32
|
|
33
|
-
@output.print("#{indentention}Moving {#{truncate(a.
|
33
|
+
@output.print("#{indentention}Moving {#{truncate(a.to_s)}} to {#{truncate(b.to_s)}}")
|
34
34
|
|
35
35
|
Move.new(source: a, destination: b).call
|
36
36
|
|
@@ -44,7 +44,7 @@ module Architecture
|
|
44
44
|
def create(file: nil, directory: nil, content: nil, context: EMPTY_CONTEXT, location: nil, &block)
|
45
45
|
a = Entity.new(id: directory || file, prefix: location || @destination)
|
46
46
|
|
47
|
-
@output.print("#{indentention}Creating {#{truncate(a.
|
47
|
+
@output.print("#{indentention}Creating {#{truncate(a.to_s)}}")
|
48
48
|
|
49
49
|
Create.new(source: a, content: content, context: context).call
|
50
50
|
|
@@ -58,7 +58,7 @@ module Architecture
|
|
58
58
|
def delete(directory: nil, file: nil, location: nil)
|
59
59
|
a = Entity.new(id: directory || file, prefix: location || @destination)
|
60
60
|
|
61
|
-
@output.print("#{indentention}Deleting {#{truncate(a.
|
61
|
+
@output.print("#{indentention}Deleting {#{truncate(a.to_s)}}")
|
62
62
|
|
63
63
|
Delete.new(source: a).call
|
64
64
|
|
@@ -68,7 +68,7 @@ module Architecture
|
|
68
68
|
def replace(file:, search:, content:, location: nil)
|
69
69
|
a = Entity.new(id: file, prefix: location || @destination)
|
70
70
|
|
71
|
-
@output.print("#{indentention}Replacing content in {#{truncate(a.
|
71
|
+
@output.print("#{indentention}Replacing content in {#{truncate(a.to_s)}}")
|
72
72
|
|
73
73
|
Replace.new(source: a, search: search, content: content).call
|
74
74
|
|
@@ -78,7 +78,7 @@ module Architecture
|
|
78
78
|
def prepend(file:, content:, context: Architecture::EMPTY_CONTEXT, location: nil)
|
79
79
|
a = Entity.new(id: file, prefix: location || @destination)
|
80
80
|
|
81
|
-
@output.print("#{indentention}Prepending {#{truncate(a.
|
81
|
+
@output.print("#{indentention}Prepending {#{truncate(a.to_s)}} with content")
|
82
82
|
|
83
83
|
Prepend.new(source: a, content: content, context: context).call
|
84
84
|
|
@@ -88,7 +88,7 @@ module Architecture
|
|
88
88
|
def append(file:, content:, context: Architecture::EMPTY_CONTEXT, location: nil)
|
89
89
|
a = Entity.new(id: directory || file, prefix: location || @destination)
|
90
90
|
|
91
|
-
@output.print("#{indentention}Appending {#{truncate(a.
|
91
|
+
@output.print("#{indentention}Appending {#{truncate(a.to_s)}} with content")
|
92
92
|
|
93
93
|
Append.new(source: a, content: content, context: context).call
|
94
94
|
|
@@ -98,7 +98,7 @@ module Architecture
|
|
98
98
|
def overwrite(file:, content:, context: Architecture::EMPTY_CONTEXT, location: nil)
|
99
99
|
a = Entity.new(id: directory || file, prefix: location || @destination)
|
100
100
|
|
101
|
-
@output.print("#{indentention}Overwriting {#{truncate(a.
|
101
|
+
@output.print("#{indentention}Overwriting {#{truncate(a.to_s)}} with content")
|
102
102
|
|
103
103
|
Overwrite.new(source: a, content: content, context: context).call
|
104
104
|
|
data/lib/architecture/version.rb
CHANGED