Sha256: c75d8d6391821d3c599d2c59d589d3c64e2efa00d986cbf306974926033e033e

Contents?: true

Size: 610 Bytes

Versions: 3

Compression:

Stored size: 610 Bytes

Contents

def setup_script
  begin
    get('https://github.com/padrino/padrino-static/raw/master/js/right.js',  destination_root("/public/javascripts/right.js"))
    get('https://github.com/padrino/padrino-static/raw/master/ujs/right.js', destination_root("/public/javascripts/right-ujs.js"))
  rescue
    copy_file('templates/static/js/right.js',  destination_root("/public/javascripts/right.js"))
    copy_file('templates/static/ujs/right.js', destination_root("/public/javascripts/right-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/rightjs.rb
padrino-gen-0.10.3 lib/padrino-gen/generators/components/scripts/rightjs.rb
padrino-gen-0.10.2 lib/padrino-gen/generators/components/scripts/rightjs.rb