fastlane-plugin-covfefe 0.9.0 → 0.9.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8048f3303bac746f9bc141b08bf1106e3ff277f5
|
4
|
+
data.tar.gz: 24a49251287cfab421cdc844f7f7972d53237e88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3b6e7fd91cc0a8c012f9dd44522cca82b7110c51e8fb86b7237776f13145b94982d40dd9d023d51686e9a8d8eaa2e55cdf42bc14269680f9e1e832b88ea44e5
|
7
|
+
data.tar.gz: df7f1909e370ba9feb1d8cd7ab0c36b6c82f17c421e2eeeb2363bc7e0b78d52fe0f9fd8a5cfafba16ac18138f68af7fd0e9e5560f91733387f235a32f67f0bbc
|
@@ -6,13 +6,14 @@ module Fastlane
|
|
6
6
|
require 'tmpdir'
|
7
7
|
|
8
8
|
Dir.mktmpdir("repo_clone") do |tmp_path|
|
9
|
-
|
10
|
-
name = params[:name]
|
9
|
+
name = params[:options][:name]
|
11
10
|
input_path = File.expand_path params[:input_path]
|
12
|
-
output_path =
|
11
|
+
output_path = params[:output_path]
|
12
|
+
output_path = File.join(output_path, params[:options][:in]) unless params[:options][:in].to_s.length == 0
|
13
|
+
output_path = File.expand_path output_path
|
13
14
|
breadcrumbs = params[:output_path]
|
14
15
|
|
15
|
-
options =
|
16
|
+
options = {}
|
16
17
|
options[:name] = name
|
17
18
|
options = options.merge(params[:extra_options])
|
18
19
|
|
@@ -36,8 +37,8 @@ module Fastlane
|
|
36
37
|
end
|
37
38
|
|
38
39
|
def self.handle(options, input_path, output_path, breadcrumbs)
|
39
|
-
Dir.entries(input_path).select
|
40
|
-
next if
|
40
|
+
Dir.entries(input_path).select do |f|
|
41
|
+
next if ['.', '..', '.git'].include?(f)
|
41
42
|
mustached = Mustache.render(f, name: options[:name])
|
42
43
|
input = File.join(input_path, f)
|
43
44
|
output = File.join(output_path, mustached)
|
@@ -52,7 +53,7 @@ module Fastlane
|
|
52
53
|
string = Mustache.render(string, name: options[:name])
|
53
54
|
File.write(output, string)
|
54
55
|
end
|
55
|
-
|
56
|
+
end
|
56
57
|
end
|
57
58
|
|
58
59
|
def self.description
|
@@ -82,15 +83,15 @@ module Fastlane
|
|
82
83
|
default_value: FastlaneCore::FastlaneFolder.path + "../",
|
83
84
|
optional: false,
|
84
85
|
type: String),
|
85
|
-
FastlaneCore::ConfigItem.new(key: :
|
86
|
-
env_name: "
|
87
|
-
description: "common name of the file structures",
|
88
|
-
|
89
|
-
type:
|
86
|
+
FastlaneCore::ConfigItem.new(key: :options,
|
87
|
+
env_name: "FL_PI_MUSTACHE_OPTIONS",
|
88
|
+
description: "name:common name of the file structures; in:optional path prefix the common name with;",
|
89
|
+
default_value: {},
|
90
|
+
type: Hash),
|
90
91
|
FastlaneCore::ConfigItem.new(key: :extra_options,
|
91
92
|
env_name: "FL_PI_MUSTACHE_EXTRA_OPTIONS",
|
92
93
|
description: "extra values that that mustache can replace",
|
93
|
-
default_value:
|
94
|
+
default_value: {},
|
94
95
|
type: Hash),
|
95
96
|
FastlaneCore::ConfigItem.new(key: :repo,
|
96
97
|
env_name: "FL_PI_MUSTACHE_REPO",
|