Sha256: 90c1eac631999897d7a1c32202d7ddb8689433f1e21327c3bb289cd3955abf46

Contents?: true

Size: 609 Bytes

Versions: 7

Compression:

Stored size: 609 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

7 entries across 7 versions & 1 rubygems

Version Path
padrino-gen-0.10.1 lib/padrino-gen/generators/components/scripts/rightjs.rb
padrino-gen-0.10.0 lib/padrino-gen/generators/components/scripts/rightjs.rb
padrino-gen-0.9.29 lib/padrino-gen/generators/components/scripts/rightjs.rb
padrino-gen-0.9.28 lib/padrino-gen/generators/components/scripts/rightjs.rb
padrino-gen-0.9.27 lib/padrino-gen/generators/components/scripts/rightjs.rb
padrino-gen-0.9.26 lib/padrino-gen/generators/components/scripts/rightjs.rb
padrino-gen-0.9.25 lib/padrino-gen/generators/components/scripts/rightjs.rb