architecture 5.1.0 → 5.1.1
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 +3 -3
- 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: 9d686c0dc100a1615c0366fd008e0a5affeec9a2
|
4
|
+
data.tar.gz: 93ac75f22adeaeffe3e73ea528ee53e8c45ec976
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f82718111af3ada6becb241c21ee833df74280606699baca5b093bae0c94397744899448249df2e6d796278e3005d586cef6aa24baca44ddf6e274686680e88
|
7
|
+
data.tar.gz: 7175f50ef3c8d77d4e1206757d4b00c8d359e2543da21827a47ec82ce709521c698f83cb3f4aba78c81198186e6c35494bc545b3321f32151793ad7b10d9ceba
|
data/lib/architecture/dsl.rb
CHANGED
@@ -9,12 +9,12 @@ module Architecture
|
|
9
9
|
yield(self)
|
10
10
|
end
|
11
11
|
|
12
|
-
def copy(file: nil, directory: nil, as:
|
13
|
-
::Architecture::Copy.new(source: source(directory || file), destination: destination(as), context: context).call
|
12
|
+
def copy(file: nil, directory: nil, as: nil, context: {})
|
13
|
+
::Architecture::Copy.new(source: source(directory || file), destination: destination(as || directory || file), context: context).call
|
14
14
|
end
|
15
15
|
|
16
16
|
def move(file: nil, directory: nil, as:)
|
17
|
-
::Architecture::Move.new(source: directory || file, destination:
|
17
|
+
::Architecture::Move.new(source: directory || file, destination: as).call
|
18
18
|
end
|
19
19
|
|
20
20
|
def create(directory: nil, file: nil, content: nil, context: {})
|
data/lib/architecture/version.rb
CHANGED