architecture 5.0.0 → 5.1.0
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 +5 -5
- 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: 95bd74ed690c84653a557f7aaceb5e2b9a05af0c
|
4
|
+
data.tar.gz: 219d09d735975aed1c6100e9b20c448a5301c260
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b04cb5c0bf29691a6e8f2f32534c859df9af4dc70d3fd679e100c4d2800cfb691e50545b2f3853d9283fbd892980394442e8460354184d93b5b230559bf6978
|
7
|
+
data.tar.gz: 941921884a033f4c9f74e92619feaa41643961334838af3af2dfdd1c31a8cbc141ee126bc37b8ff03356a96217032daea71b231b438728027d86cc3d811afaa4
|
data/lib/architecture/dsl.rb
CHANGED
@@ -9,12 +9,12 @@ module Architecture
|
|
9
9
|
yield(self)
|
10
10
|
end
|
11
11
|
|
12
|
-
def copy(
|
13
|
-
::Architecture::Copy.new(source: source(
|
12
|
+
def copy(file: nil, directory: nil, as: name, context: {})
|
13
|
+
::Architecture::Copy.new(source: source(directory || file), destination: destination(as), context: context).call
|
14
14
|
end
|
15
15
|
|
16
|
-
def move(
|
17
|
-
::Architecture::Move.new(source:
|
16
|
+
def move(file: nil, directory: nil, as:)
|
17
|
+
::Architecture::Move.new(source: directory || file, destination: destination(as)).call
|
18
18
|
end
|
19
19
|
|
20
20
|
def create(directory: nil, file: nil, content: nil, context: {})
|
@@ -42,7 +42,7 @@ module Architecture
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def within(source: nil, destination: nil, &block)
|
45
|
-
::Architecture::DSL.new(source: source(
|
45
|
+
::Architecture::DSL.new(source: source(source), destination: destination(destination), &block).call
|
46
46
|
end
|
47
47
|
|
48
48
|
def source(path)
|
data/lib/architecture/version.rb
CHANGED