File: run_one.rb

package info (click to toggle)
ruby-i18n 1.14.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 768 kB
  • sloc: ruby: 6,548; makefile: 5
file content (11 lines) | stat: -rw-r--r-- 271 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
def bundle_check
  `bundle check` == "Resolving dependencies...\nThe Gemfile's dependencies are satisfied\n"
end

def execute(command)
  puts command
  system command
end

execute 'bundle install' unless bundle_check
execute "bundle exec ruby -w -I'lib:test' #{ARGV[0]}"