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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/nexoform +21 -2
  3. data/lib/nexoform/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d363822079dc68472a28420dbdf37989b2c2ddf6098cb5ef2920ec84242773a4
4
- data.tar.gz: 908d85569d1157a45fc6115d11ec74fe9f41f3006020f9bb6e2692ae288cf526
3
+ metadata.gz: 2659d47f10a0ebe532021e68c8e83c905771176a1c87240ea310792db4dc902f
4
+ data.tar.gz: 4ace7063caf89a7cedfc5934e963901eecc699ce16ea7beefb40fcb31962872d
5
5
  SHA512:
6
- metadata.gz: 45906a116b4cd2b521110a520f8410ecc46775855dadd758892dba82e8426f0c885a102653f3ab027f7c099f495c734d36d98c89ac36a7b067cfde97cb9a955b
7
- data.tar.gz: 73d855031ba118f4493e4da5a045c87d4cbb48768dd491489d66d5df8e76712af65a16861312c296693e19b3b1400659c2b0edaf97e7a52c153f59e7721bb4ed
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
- return options if options[:noplan]
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
- return options if options[:nosave]
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)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Nexoform
4
4
  def self.version
5
- '0.1.7'
5
+ '0.1.8'
6
6
  end
7
7
 
8
8
  def self.date
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexoform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Porter