Sha256: 3f448469072249004bfc81bf8da681d904300af2ec087f4a5e50399cc5838d51

Contents?: true

Size: 634 Bytes

Versions: 55

Compression:

Stored size: 634 Bytes

Contents

def setup_script
  begin
    get('https://raw.github.com/padrino/padrino-static/master/js/mootools.js',  destination_root("/public/javascripts/mootools.js"))
    get('https://raw.github.com/padrino/padrino-static/master/ujs/mootools.js', destination_root("/public/javascripts/mootools-ujs.js"))
  rescue
    copy_file('templates/static/js/mootools.js',  destination_root("/public/javascripts/mootools.js"))
    copy_file('templates/static/ujs/mootools.js', destination_root("/public/javascripts/mootools-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.12.0.rc2 lib/padrino-gen/generators/components/scripts/mootools.rb
padrino-gen-0.12.0.rc1 lib/padrino-gen/generators/components/scripts/mootools.rb
padrino-gen-0.11.4 lib/padrino-gen/generators/components/scripts/mootools.rb
padrino-gen-0.11.3 lib/padrino-gen/generators/components/scripts/mootools.rb
padrino-gen-0.11.2 lib/padrino-gen/generators/components/scripts/mootools.rb
padrino-gen-0.11.1 lib/padrino-gen/generators/components/scripts/mootools.rb
padrino-gen-0.11.0 lib/padrino-gen/generators/components/scripts/mootools.rb
padrino-gen-0.10.7 lib/padrino-gen/generators/components/scripts/mootools.rb
padrino-gen-0.10.6 lib/padrino-gen/generators/components/scripts/mootools.rb
padrino-gen-0.10.6.e lib/padrino-gen/generators/components/scripts/mootools.rb
padrino-gen-0.10.6.d lib/padrino-gen/generators/components/scripts/mootools.rb
padrino-gen-0.10.6.c lib/padrino-gen/generators/components/scripts/mootools.rb
padrino-gen-0.10.6.b lib/padrino-gen/generators/components/scripts/mootools.rb
padrino-gen-0.10.6.a lib/padrino-gen/generators/components/scripts/mootools.rb
padrino-gen-0.10.5 lib/padrino-gen/generators/components/scripts/mootools.rb