make sure error method exists. fixes #104

This commit is contained in:
David Dollar committed 2012-01-22 21:55:55 -05:00
1 parent 7ee2edcc60
commit e0d84a56d7
2 files changed
+5 -6

No files matched your search

-1
View File
@@ -1 +0,0 @@
FOO=bar
+5 -5
View File
@@ -134,11 +134,6 @@ private ######################################################################
end end
end end
def error(message)
puts "ERROR: #{message}"
exit 1
end
def longest_process_name def longest_process_name
@longest_process_name ||= begin @longest_process_name ||= begin
longest = procfile.process_names.map { |name| name.length }.sort.last longest = procfile.process_names.map { |name| name.length }.sort.last
@@ -217,6 +212,11 @@ private ######################################################################
def apply_environment! def apply_environment!
@environment.each { |k,v| ENV[k] = v } @environment.each { |k,v| ENV[k] = v }
end end
def error(message)
puts "ERROR: #{message}"
exit 1
end
end end
include Env include Env