Module: Ocran::CommandOutput

Included in:
BuildHelper, Direction, Runner
Defined in:
lib/ocran/command_output.rb

Instance Method Summary collapse

Instance Method Details

#error(s) ⇒ Object



18
19
20
# File 'lib/ocran/command_output.rb', line 18

def error(s)
  STDERR.puts "ERROR: #{s}"
end

#say(s) ⇒ Object



6
7
8
# File 'lib/ocran/command_output.rb', line 6

def say(s)
  puts "=== #{s}" unless Ocran.option&.quiet?
end

#verbose(s) ⇒ Object



10
11
12
# File 'lib/ocran/command_output.rb', line 10

def verbose(s)
  puts s if Ocran.option&.verbose?
end

#warning(s) ⇒ Object



14
15
16
# File 'lib/ocran/command_output.rb', line 14

def warning(s)
  STDERR.puts "WARNING: #{s}" if Ocran.option&.warning?
end