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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae26d00c4b207690ecbbccddc3625597714a600b
4
- data.tar.gz: f07a6b80dee45ebdd2eda912157d750fb687adae
3
+ metadata.gz: 86791b115333c317d4eb1eeb41a8059755f2dbf5
4
+ data.tar.gz: a650403694da3b526b5fa45b556b731bf1545f27
5
5
  SHA512:
6
- metadata.gz: 77134944335f22ce47bc92e0f7bbde380dead39d83ac63fdc31e4345a1d0037d31c66da5a396ca9607349a993aba63bde4c0e07ab687bdbc0d42e9d032587b7d
7
- data.tar.gz: 5e184bfd40e3da9c8986ec788ee8beb72bfbacfb31e739cf1e9a54ddd2642277c2ebcb94d148a49a7d11df3a04125336635cb8fb6fd66210f20def67fabae212
6
+ metadata.gz: 941659fedc9b53e546c44317534de7ca9c621561f69ef507055bb877246ebfe99beb2a87fe4494dc22128e810c2238948445be83c0f9f7535059d630baab130f
7
+ data.tar.gz: 98890a4e9f415a34fca421cffc217d1a5d57f0c12da2943f076cafa0c357288e8c08d29736105c48c1d24fe0a79b7d7099a2e64c8607d05caf5bc3ec8a6c8c8c
@@ -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(path:, content: nil, context: {})
21
- ::Architecture::Create.new(source: path, content: content, context: context).call
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(path:)
25
- ::Architecture::Delete.new(source: path).call
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(path:, search:, content:)
29
- ::Architecture::Replace.new(source: path, search: search, content: content).call
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(path:, content:, context: {})
33
- ::Architecture::Prepend.new(source: path, content: content, context: context).call
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(path:, content:)
37
- ::Architecture::Append.new(source: path, content: content, context: context).call
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(path:, content:, context: {})
41
- ::Architecture::Overwrite.new(source: path, content: content, context: context).call
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(path:, &block)
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
 
@@ -1,3 +1,3 @@
1
1
  module Architecture
2
- VERSION = "1.1.0"
2
+ VERSION = "2.0.0"
3
3
  end
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: 1.1.0
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-04 00:00:00.000000000 Z
11
+ date: 2015-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mustache