lib/invoker/parsers/config.rb in invoker-1.0.3 vs lib/invoker/parsers/config.rb in invoker-1.0.4
- old
+ new
@@ -1,7 +1,6 @@
require 'iniparse'
-require 'dotenv'
module Invoker
module Parsers
class Config
PORT_REGEX = /\$PORT/
@@ -48,11 +47,10 @@
process_command_from_section(section)
end
end
def process_procfile
- load_env
procfile = Invoker::Parsers::Procfile.new(@filename)
procfile.entries.map do |name, command|
section = { "label" => name, "command" => command }
process_command_from_section(section)
end
@@ -63,13 +61,9 @@
port = pick_port(section)
make_option_for_subdomain(section, port)
else
make_option(section)
end
- end
-
- def load_env
- Dotenv.load
end
def pick_port(section)
if section['command'] =~ PORT_REGEX
@port += 1