lib/jets/tmp_loader.rb in jets-2.3.0 vs lib/jets/tmp_loader.rb in jets-2.3.1
- old
+ new
@@ -6,10 +6,10 @@
new.load
end
def initialize(yaml_path=nil)
yaml_path ||= "#{Jets.root}/handlers/data.yml"
- @data = YAML.load_file(yaml_path)
+ @data = YAML.load_file(yaml_path) if File.exist?(yaml_path)
@s3_bucket = @data['s3_bucket']
@rack_zip = @data['rack_zip']
end
def load