factor 0.6.10 → 0.6.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/commands/registry_command.rb +7 -4
- data/lib/factor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 36c23f1f0ce338d92f5ef0e35df3671728804c47
|
|
4
|
+
data.tar.gz: d1515bccab6a1cc9d36da649023945d430a3dbee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc8b6b107d9e7cfc44298fa6ccc1bb3c5d530b9ccf83f82beb26aad589780ca0b37f547ca9f8bc58b2e736fd17650ff54235b639cb3c1f79b41b9cdd78f1788e
|
|
7
|
+
data.tar.gz: 0e6a5433690b96044aabe7a021b4406f5f23304fbd53a50731253d40ccd026742f9a8ed992034d18dcdf4c10f4672eb63cf2b4b99f2916f4eb8bf0ef57290de0
|
|
@@ -81,14 +81,17 @@ module Factor
|
|
|
81
81
|
|
|
82
82
|
variables = {}
|
|
83
83
|
config['variables'].each do |var_id,var_info|
|
|
84
|
-
puts var_info['description'] if var_info['description']
|
|
85
84
|
values = begin
|
|
86
85
|
JSON.parse(options.values)
|
|
87
86
|
rescue
|
|
88
87
|
{}
|
|
89
88
|
end
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
if values[var_id]
|
|
90
|
+
variables[var_id.to_s] = values[var_id]
|
|
91
|
+
else
|
|
92
|
+
puts var_info['description'] if var_info['description']
|
|
93
|
+
variables[var_id.to_s] = ask("#{var_info['name'].bold}#{' (optional)' if var_info['optional']}: ").to_s
|
|
94
|
+
end
|
|
92
95
|
end
|
|
93
96
|
|
|
94
97
|
begin
|
|
@@ -115,7 +118,7 @@ module Factor
|
|
|
115
118
|
end
|
|
116
119
|
|
|
117
120
|
|
|
118
|
-
puts "Created #{workflow_name} successfully".green
|
|
121
|
+
puts "Created '#{workflow_name}' successfully".green
|
|
119
122
|
end
|
|
120
123
|
|
|
121
124
|
private
|
data/lib/factor/version.rb
CHANGED