- mode 0644
- content YAML.dump(:name => layer,
- :title => title || layer,
- :url => "http://{s}.#{site}/layer/#{layer}/{z}/{x}/{y}.png",
- :attribution => copyright,
- :default => default_layer,
- :maxZoom => max_zoom,
- :overlay => overlay)
+ mode "644"
+ content YAML.dump(:name => new_resource.layer,
+ :title => new_resource.title || new_resource.layer,
+ :url => "//{s}.#{new_resource.site}/layer/#{new_resource.layer}/{z}/{x}/{y}.png",
+ :attribution => new_resource.copyright,
+ :default => new_resource.default_layer,
+ :maxZoom => new_resource.max_zoom,
+ :overlay => new_resource.overlay)