Sha256: aec32e7f8f2dcaed227d29a3466b891b74aed00c56627b589dbbaa276569fe4d

Contents?: true

Size: 634 Bytes

Versions: 3

Compression:

Stored size: 634 Bytes

Contents

def setup_script
  begin
    get('https://github.com/padrino/padrino-static/raw/master/js/mootools.js',  destination_root("/public/javascripts/mootools.js"))
    get('https://github.com/padrino/padrino-static/raw/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

3 entries across 3 versions & 1 rubygems

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