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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 02f3b12d5474199fe1cad3b769615fdb182e5c70
4
- data.tar.gz: 5e11c147123b0bcc3b9295e068675d5b2f29f524
3
+ metadata.gz: 95bd74ed690c84653a557f7aaceb5e2b9a05af0c
4
+ data.tar.gz: 219d09d735975aed1c6100e9b20c448a5301c260
5
5
  SHA512:
6
- metadata.gz: c0b596987e94aa99ec1d98f928423b3059c4b5d05bcf939c0fe3349a2dd5a60e73af40b35ecfa5d563ecac50941d9d6bc65046c25709607cc111b174ddf5eb97
7
- data.tar.gz: dcc32efc441b58e32fc17f88046d1dec93b974a0082037375f4d11a10baa3e751604a4bb283380b808847001cadfc8a0b4ff894098eed1e8f93f0c96ea33e64b
6
+ metadata.gz: 1b04cb5c0bf29691a6e8f2f32534c859df9af4dc70d3fd679e100c4d2800cfb691e50545b2f3853d9283fbd892980394442e8460354184d93b5b230559bf6978
7
+ data.tar.gz: 941921884a033f4c9f74e92619feaa41643961334838af3af2dfdd1c31a8cbc141ee126bc37b8ff03356a96217032daea71b231b438728027d86cc3d811afaa4
@@ -9,12 +9,12 @@ module Architecture
9
9
  yield(self)
10
10
  end
11
11
 
12
- def copy(name:, as: name, context: {})
13
- ::Architecture::Copy.new(source: source(name), destination: destination(as), context: context).call
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(name:, as:)
17
- ::Architecture::Move.new(source: path, destination: as).call
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(path), destination: destination(path), &block).call
45
+ ::Architecture::DSL.new(source: source(source), destination: destination(destination), &block).call
46
46
  end
47
47
 
48
48
  def source(path)
@@ -1,3 +1,3 @@
1
1
  module Architecture
2
- VERSION = "5.0.0"
2
+ VERSION = "5.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: architecture
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kurtis Rainbolt-Greene