sanctuary 0.1.17 → 0.1.18

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
  SHA256:
3
- metadata.gz: bbb4358f1bcaf0631a6722056748abe18f0a866ec0cc74303714df08f08f9a4c
4
- data.tar.gz: a489a2a59ff9f93c345b6c7d3149933c2acd43adf3cb0af42e72ea88776ede83
3
+ metadata.gz: 1d50f8865882fc29ca238e0b63759e5ac8e7d10d4176cac9618a593d52278377
4
+ data.tar.gz: 88d68635d0987f2faa4e8608b90e0e46b4552878376321c49196de887c89a42c
5
5
  SHA512:
6
- metadata.gz: aa0d2ab1cdcf737ac83599c41c189c04882f1216e3cc4bc861116614892627cf16a95fc7d240f679d43a3e47df6e08ef9f1a0020d8d7daefe82e3823b6e035a0
7
- data.tar.gz: 40404b1f5da2d89ae98db0c166f2f3145f02fa39b8d61cbf415d8f2d929ae376b085c13ca3de2b0bc97ee64c6a4524555fd8ba3944e9a735bd341823cf025396
6
+ metadata.gz: 2c0a8862d45edb6066184c68892e5676b8c61b2077eb7e314a62521a82b129fdd56127c62488ba90a720cbb0aae4adaf0e1d159a97649833fdc9755ee2459e8d
7
+ data.tar.gz: 30255cbf6273a3843eb5b105db85e2705e58ed0e8aaad5e38eb55e416f7d64bad618e88fe93e350f271abf5a8bd1b1e76d74866db8ed907e67ff3cf957a3af73
@@ -15,7 +15,7 @@ module Sanctuary
15
15
  Generator.start([result[1..-1], '', 'recipe'])
16
16
  elsif ARGV.include?("--script")
17
17
  result = present_script_choices
18
- Generator.start([result[1..-1], '', 'script'])
18
+ Generator.start([result[1..-1], ARGV.last, 'script'])
19
19
  else
20
20
  result = present_choices
21
21
  if ARGV.include?("-p")
@@ -23,7 +23,11 @@ module Sanctuary
23
23
  system "sh ./sanctuary-post-recipe-copy-hook.sh"
24
24
  end
25
25
  elsif type == 'script'
26
- system "sh #{Sanctuary::HOME_DIR.gsub("templates", "scripts/")}#{template}"
26
+ if name.nil?
27
+ system "sh #{Sanctuary::HOME_DIR.gsub("templates", "scripts/")}#{template}"
28
+ else
29
+ system "sh #{Sanctuary::HOME_DIR.gsub("templates", "scripts/")}#{template} #{name}"
30
+ end
27
31
  else
28
32
  if name.empty?
29
33
  # only copy the file and not the directory the file resides in
@@ -1,3 +1,3 @@
1
1
  module Sanctuary
2
- VERSION = "0.1.17"
2
+ VERSION = "0.1.18"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sanctuary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin-Kawai