lib/travis/cli/command.rb in travis-1.2.0 vs lib/travis/cli/command.rb in travis-1.2.1
- old
+ new
@@ -147,11 +147,11 @@
style ||= :important
data = format % color(data, style) if format and interactive?
data = data.gsub(/<\[\[/, '<%=').gsub(/\]\]>/, '%>')
end
- def template(file)
- File.read(file).split('__END__', 2)[1].strip
+ def template(*args)
+ File.read(*args).split('__END__', 2)[1].strip
end
def color(line, style)
return line unless interactive?
terminal.color(line, Array(style).map(&:to_sym))