Skip to content

Commit

Permalink
(maint) Use PDK::Logger instead of .puts in PDK::Generate::Module
Browse files Browse the repository at this point in the history
  • Loading branch information
rodjek committed Jul 10, 2017
1 parent 23c8325 commit 880856b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pdk/generators/module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def self.module_interview(metadata, opts = {})
answers = interview.run

if answers.nil?
puts _('Interview cancelled, aborting...')
PDK.logger.info _('Interview cancelled, not generating the module.')
exit 0
end

Expand All @@ -198,7 +198,7 @@ def self.module_interview(metadata, opts = {})
puts

unless prompt.yes?(_('About to generate this module; continue?'))
puts _('Aborting...')
PDK.logger.info _('Module not generated.')
exit 0
end

Expand Down

0 comments on commit 880856b

Please sign in to comment.