Sha256: e26fb98e98a225f0ebaee603de8f9bcd0978fa5b1dd04b3ac7675f9bcdc779cd

Contents?: true

Size: 602 Bytes

Versions: 3

Compression:

Stored size: 602 Bytes

Contents

def setup_script
  begin
    get('https://github.com/padrino/padrino-static/raw/master/js/dojo.js',  destination_root("/public/javascripts/dojo.js"))
    get('https://github.com/padrino/padrino-static/raw/master/ujs/dojo.js', destination_root("/public/javascripts/dojo-ujs.js"))
  rescue
    copy_file('templates/static/js/dojo.js',  destination_root("/public/javascripts/dojo.js"))
    copy_file('templates/static/ujs/dojo.js', destination_root("/public/javascripts/dojo-ujs.js"))
  end
  create_file(destination_root('/public/javascripts/application.js'), "// Put your application scripts here")
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
padrino-gen-0.10.4 lib/padrino-gen/generators/components/scripts/dojo.rb
padrino-gen-0.10.3 lib/padrino-gen/generators/components/scripts/dojo.rb
padrino-gen-0.10.2 lib/padrino-gen/generators/components/scripts/dojo.rb