architecture 1.1.0 → 2.0.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 +13 -13
- data/lib/architecture/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86791b115333c317d4eb1eeb41a8059755f2dbf5
|
4
|
+
data.tar.gz: a650403694da3b526b5fa45b556b731bf1545f27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 941659fedc9b53e546c44317534de7ca9c621561f69ef507055bb877246ebfe99beb2a87fe4494dc22128e810c2238948445be83c0f9f7535059d630baab130f
|
7
|
+
data.tar.gz: 98890a4e9f415a34fca421cffc217d1a5d57f0c12da2943f076cafa0c357288e8c08d29736105c48c1d24fe0a79b7d7099a2e64c8607d05caf5bc3ec8a6c8c8c
|
data/lib/architecture/dsl.rb
CHANGED
@@ -17,31 +17,31 @@ module Architecture
|
|
17
17
|
::Architecture::Move.new(source: path, destination: as).call
|
18
18
|
end
|
19
19
|
|
20
|
-
private def create(
|
21
|
-
::Architecture::Create.new(source:
|
20
|
+
private def create(directory: nil, file: nil, content: nil, context: {})
|
21
|
+
::Architecture::Create.new(source: directory || file, content: content, context: context).call
|
22
22
|
end
|
23
23
|
|
24
|
-
private def delete(
|
25
|
-
::Architecture::Delete.new(source:
|
24
|
+
private def delete(directory: nil, file: nil)
|
25
|
+
::Architecture::Delete.new(source: directory || file).call
|
26
26
|
end
|
27
27
|
|
28
|
-
private def replace(
|
29
|
-
::Architecture::Replace.new(source:
|
28
|
+
private def replace(file: nil, search:, content:)
|
29
|
+
::Architecture::Replace.new(source: file, search: search, content: content).call
|
30
30
|
end
|
31
31
|
|
32
|
-
private def prepend(
|
33
|
-
::Architecture::Prepend.new(source:
|
32
|
+
private def prepend(file: nil, content:, context: {})
|
33
|
+
::Architecture::Prepend.new(source: file, content: content, context: context).call
|
34
34
|
end
|
35
35
|
|
36
|
-
private def append(
|
37
|
-
::Architecture::Append.new(source:
|
36
|
+
private def append(file: nil, content:)
|
37
|
+
::Architecture::Append.new(source: file, content: content, context: context).call
|
38
38
|
end
|
39
39
|
|
40
|
-
private def overwrite(
|
41
|
-
::Architecture::Overwrite.new(source:
|
40
|
+
private def overwrite(file: nil, content:, context: {})
|
41
|
+
::Architecture::Overwrite.new(source: file, content: content, context: context).call
|
42
42
|
end
|
43
43
|
|
44
|
-
private def within(
|
44
|
+
private def within(source: nil, destination: nil, &block)
|
45
45
|
::Architecture::DSL.new(source: source(path), destination: destination(path), &block).call
|
46
46
|
end
|
47
47
|
|
data/lib/architecture/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: architecture
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kurtis Rainbolt-Greene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mustache
|