Sha256: f99ab55fd3921f75315f88c8ab2df49b840af0b20b56598f799c1c0da88a88ff

Contents?: true

Size: 874 Bytes

Versions: 55

Compression:

Stored size: 874 Bytes

Contents

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

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
padrino-gen-0.16.0.pre3 lib/padrino-gen/generators/components/scripts/prototype.rb
padrino-gen-0.16.0.pre2 lib/padrino-gen/generators/components/scripts/prototype.rb
padrino-gen-0.15.3 lib/padrino-gen/generators/components/scripts/prototype.rb
padrino-gen-0.15.2 lib/padrino-gen/generators/components/scripts/prototype.rb
padrino-gen-0.15.1 lib/padrino-gen/generators/components/scripts/prototype.rb
padrino-gen-0.15.0 lib/padrino-gen/generators/components/scripts/prototype.rb
padrino-gen-0.14.4 lib/padrino-gen/generators/components/scripts/prototype.rb
padrino-gen-0.14.3 lib/padrino-gen/generators/components/scripts/prototype.rb
padrino-gen-0.12.9 lib/padrino-gen/generators/components/scripts/prototype.rb
padrino-gen-0.14.2 lib/padrino-gen/generators/components/scripts/prototype.rb
padrino-gen-0.13.3.4 lib/padrino-gen/generators/components/scripts/prototype.rb
padrino-gen-0.14.1.1 lib/padrino-gen/generators/components/scripts/prototype.rb
padrino-gen-0.14.1 lib/padrino-gen/generators/components/scripts/prototype.rb
padrino-gen-0.14.0.2 lib/padrino-gen/generators/components/scripts/prototype.rb
padrino-gen-0.14.0.1 lib/padrino-gen/generators/components/scripts/prototype.rb
padrino-gen-0.14.0 lib/padrino-gen/generators/components/scripts/prototype.rb
padrino-gen-0.14.0.rc2 lib/padrino-gen/generators/components/scripts/prototype.rb
padrino-gen-0.14.0.rc1 lib/padrino-gen/generators/components/scripts/prototype.rb
padrino-gen-0.13.3.3 lib/padrino-gen/generators/components/scripts/prototype.rb
padrino-gen-0.13.3.2 lib/padrino-gen/generators/components/scripts/prototype.rb