convox_installer 1.0.5 → 1.0.6
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/convox_installer/config.rb +4 -4
- data/lib/convox_installer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a1bcd87ec2ab1bd0c720397964e8e641ad70017b582e8f72b3ea1c019f33cfc
|
4
|
+
data.tar.gz: ccc5bdfc3a20b4107d2fca2712b0d1268ce86ae40946a11bc4ed38f71b2a7021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f68b7a76cdc88e96b7cc4e2d24f02c28e95701481f4c33b58a72e2ef691295045fec93bdc39261827ffe510fdadf9c4e7faa0ad832ba31d5eb81fffc0288263
|
7
|
+
data.tar.gz: 0f6743f60a94e60ab3e82e94daa853ce5c624cf8f67d508a18e5fa0428748d8798c86487be87b17f9a5b7471c822eb9e5998b9eefa59cb209a1551f36dc99fa4
|
@@ -8,7 +8,7 @@ require "securerandom"
|
|
8
8
|
module ConvoxInstaller
|
9
9
|
class Config
|
10
10
|
CONFIG_FILE = File.expand_path("./.installer_config").freeze
|
11
|
-
|
11
|
+
|
12
12
|
attr_accessor :logger, :config, :prompts, :highline
|
13
13
|
|
14
14
|
DEFAULT_PROMPTS = [
|
@@ -129,7 +129,7 @@ module ConvoxInstaller
|
|
129
129
|
return if config[key]
|
130
130
|
|
131
131
|
default = prompt[:value]
|
132
|
-
config[key] = default.is_a?(Proc) ? default.call : default
|
132
|
+
config[key] = default.is_a?(Proc) ? default.call(config) : default
|
133
133
|
save_config_to_file
|
134
134
|
return
|
135
135
|
end
|
@@ -169,9 +169,9 @@ module ConvoxInstaller
|
|
169
169
|
end
|
170
170
|
|
171
171
|
def save_config_to_file
|
172
|
-
FileUtils.mkdir_p File.expand_path("~/.convox")
|
172
|
+
# FileUtils.mkdir_p File.expand_path("~/.convox")
|
173
173
|
File.open(CONFIG_FILE, "w") do |f|
|
174
|
-
f.puts({config: config}.to_json)
|
174
|
+
f.puts({ config: config }.to_json)
|
175
175
|
end
|
176
176
|
end
|
177
177
|
|