Sha256: 3424ccc43f8a28b4c407d0bb0e913545455216567120ae5ecca41a59d688b3f4
Contents?: true
Size: 651 Bytes
Versions: 7
Compression:
Stored size: 651 Bytes
Contents
#!/usr/bin/env ruby # Start application process puts "\n== Starting application process ==" profiling = Datadog::DemoEnv.feature?('profiling') ? 'DD_PROFILING_ENABLED=true ddtracerb exec ' : '' process = (ARGV[0] || Datadog::DemoEnv.process) command = case process when 'fibonacci' 'bundle exec ruby app/fibonacci.rb' when 'irb' "bundle exec #{profiling}irb" when nil, '' abort("\n== ERROR: Must specify a application process! ==") else abort("\n== ERROR: Unknown application process '#{process}' ==") end puts "Run: #{command}" Kernel.exec(command)
Version data entries
7 entries across 7 versions & 1 rubygems