nexoform 0.1.7 → 0.1.8
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/bin/nexoform +21 -2
- data/lib/nexoform/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: 2659d47f10a0ebe532021e68c8e83c905771176a1c87240ea310792db4dc902f
|
4
|
+
data.tar.gz: 4ace7063caf89a7cedfc5934e963901eecc699ce16ea7beefb40fcb31962872d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6267eab03be1e1501e6e71cf54d304652ba89138c8bd7a4d86d3fd8e1d7ff6359818752c4ee645483ba725c4c34d0596bdaf678427de3264ad2becaec84295c2
|
7
|
+
data.tar.gz: e3459b60863168ad23387b4986c63a65eae98dcd1053adbf7734c928d825a760c9997faea75800a1b8a9a644b7d4047a225109ebb1614e5702e1d14f0de09a0b
|
data/bin/nexoform
CHANGED
@@ -302,7 +302,15 @@ class NexoformBin < Thor
|
|
302
302
|
end
|
303
303
|
|
304
304
|
def prompt_for_plan_file(options)
|
305
|
-
|
305
|
+
if options[:noplan]
|
306
|
+
puts_next_color '* Plan file is disabled on command line. Not using a plan file'
|
307
|
+
return options
|
308
|
+
end
|
309
|
+
|
310
|
+
if options[:plan]
|
311
|
+
puts_next_color "* Plan file is specified on the command line. Using specified plan file '#{options[:plan]}'"
|
312
|
+
return options
|
313
|
+
end
|
306
314
|
|
307
315
|
if Nexoform::Config.plan_disabled?(env(options))
|
308
316
|
puts_next_color '* Plan file is disabled in config file. Not using a plan file'
|
@@ -400,7 +408,17 @@ class NexoformBin < Thor
|
|
400
408
|
end
|
401
409
|
|
402
410
|
def prompt_for_save_file(options)
|
403
|
-
|
411
|
+
puts "[DEBUG]: prompt_for_save_file - options: '#{options}'" if options['debug']
|
412
|
+
|
413
|
+
if options[:nosave]
|
414
|
+
puts_next_color "* Plan file saving disabled on command line"
|
415
|
+
return options
|
416
|
+
end
|
417
|
+
|
418
|
+
if options[:out]
|
419
|
+
puts_next_color "* Plan file specified on command line as '#{options[:out]}'. Using that"
|
420
|
+
return options
|
421
|
+
end
|
404
422
|
|
405
423
|
if Nexoform::Config.has_plan_file?(env(options))
|
406
424
|
plan_file = Nexoform::Config.plan_file(env(options))
|
@@ -478,6 +496,7 @@ class NexoformBin < Thor
|
|
478
496
|
end
|
479
497
|
|
480
498
|
def exec_plan(options)
|
499
|
+
puts "[DEBUG]: exec_plan - options: '#{options}'" if options['debug']
|
481
500
|
sanity_check(options)
|
482
501
|
generate_files(options, chdir: true) if has_erb_files?
|
483
502
|
options = prompt_for_save_file(options)
|
data/lib/nexoform/version.rb
CHANGED