Method: Linecook::Commands::Compile#load_env

Defined in:
lib/linecook/commands/compile.rb

#load_env(package_file) ⇒ Object



144
145
146
147
# File 'lib/linecook/commands/compile.rb', line 144

def load_env(package_file)
  env = package_file && File.exists?(package_file) ? YAML.load_file(package_file) : nil
  env.nil? ? {} : env
end