def ruby(program,*arguments)
      command = [program, *arguments]

      # assume that `.rb` scripts do not have a `#!/usr/bin/env ruby`
      command.unshift('ruby') if program[-3,3] == '.rb'

      # if the environment uses bundler, run all ruby commands via `bundle exec`
      if (@environment && @environment.bundler)
        command.unshift('bundle','exec')
      end

      run(*command)
    end
def ruby(program,*arguments)
      command = [program, *arguments]

      # assume that `.rb` scripts do not have a `#!/usr/bin/env ruby`
      command.unshift('ruby') if program[-3,3] == '.rb'

      # if the environment uses bundler, run all ruby commands via `bundle exec`
      if (@environment && @environment.bundler)
        command.unshift('bundle','exec')
      end

      run(*command)
    end
Executes a Ruby program.

 @param [Symbol, String] program
   Name of the Ruby program to run.

 @param [Array<String>] arguments
   Additional arguments for the Ruby program.

 @since 0.5.2