lib/howzit/buildnote.rb in howzit-2.0.6 vs lib/howzit/buildnote.rb in howzit-2.0.7
- old
+ new
@@ -87,11 +87,11 @@
end
# Create a buildnotes skeleton
def create_note
trap('SIGINT') do
- warn "\nCanceled"
+ Howzit.console.info "\nCanceled"
exit!
end
default = !$stdout.isatty || Howzit.options[:default]
# First make sure there isn't already a buildnotes file
if note_file
@@ -267,11 +267,11 @@
t_meta = t_leader.get_metadata
if t_meta.key?('required')
required = t_meta['required'].strip.split(/\s*,\s*/)
required.each do |req|
unless @metadata.keys.include?(req.downcase)
- warn %({xr}ERROR: Missing required metadata key from template '{bw}#{File.basename(template, '.md')}{xr}'{x}).c
- warn %({xr}Please define {by}#{req.downcase}{xr} in build notes{x}).c
+ Howzit.console.error %({xr}ERROR: Missing required metadata key from template '{bw}#{File.basename(template, '.md')}{xr}'{x}).c
+ Howzit.console.error %({xr}Please define {by}#{req.downcase}{xr} in build notes{x}).c
Process.exit 1
end
end
end
end