File: setup

package info (click to toggle)
ruby-email-spec 2.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 920 kB
  • sloc: javascript: 6,743; ruby: 2,575; makefile: 4
file content (20 lines) | stat: -rwxr-xr-x 564 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env ruby
require 'pathname'

puts "\n== Copying sample files =="
unless File.exist?(".ruby-version")
  system "cp .ruby-version.sample .ruby-version"
  system "cd ."
end

puts "== Installing dependencies =="
system "gem install bundler --conservative"

puts "== Installing lib dependencies =="
system "bundle check || bundle install"

puts "== Installing rails 4 dependencies =="
system "bundle install --gemfile=examples/rails4_root/Gemfile"

puts "== Installing sinatra dependencies =="
system "bundle install --gemfile=examples/sinatra_root/Gemfile"