Sha256: 1969d49e439caf6474cf22bd76c95e80579d31ba6ce39a59293e4c3063332664

Contents?: true

Size: 652 Bytes

Versions: 31

Compression:

Stored size: 652 Bytes

Contents

require "drb/drb"

module Spec
  module Runner
    # Facade to run specs by connecting to a DRB server
    class DrbCommandLine
      # Runs specs on a DRB server. Note that this API is similar to that of
      # CommandLine - making it possible for clients to use both interchangeably.
      def self.run(options)
        begin
          DRb.start_service
          spec_server = DRbObject.new_with_uri("druby://localhost:8989")
          spec_server.run(options.argv, options.error_stream, options.output_stream)
        rescue DRb::DRbConnError => e
          options.error_stream.puts "No server is running"
        end
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 5 rubygems

Version Path
picolena-0.0.99 app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/drb_command_line.rb
picolena-0.1.1 rails_plugins/rspec/lib/spec/runner/drb_command_line.rb
picolena-0.1.0 rails_plugins/rspec/lib/spec/runner/drb_command_line.rb
picolena-0.1.4 rails_plugins/rspec/lib/spec/runner/drb_command_line.rb
picolena-0.1.3 rails_plugins/rspec/lib/spec/runner/drb_command_line.rb
picolena-0.1.2 rails_plugins/rspec/lib/spec/runner/drb_command_line.rb
picolena-0.1.6 rails_plugins/rspec/lib/spec/runner/drb_command_line.rb
picolena-0.1.5 rails_plugins/rspec/lib/spec/runner/drb_command_line.rb
picolena-0.1.7 rails_plugins/rspec/lib/spec/runner/drb_command_line.rb
picolena-0.1.8 rails_plugins/rspec/lib/spec/runner/drb_command_line.rb
radiant-0.6.5.1 vendor/plugins/rspec/lib/spec/runner/drb_command_line.rb
radiant-0.6.5 vendor/plugins/rspec/lib/spec/runner/drb_command_line.rb
radiant-0.6.7 vendor/plugins/rspec/lib/spec/runner/drb_command_line.rb
radiant-0.6.6 vendor/plugins/rspec/lib/spec/runner/drb_command_line.rb
radiant-0.6.8 vendor/plugins/rspec/lib/spec/runner/drb_command_line.rb
radiant-0.6.9 vendor/plugins/rspec/lib/spec/runner/drb_command_line.rb
rspec-1.1.0 lib/spec/runner/drb_command_line.rb
rspec-1.1.1 lib/spec/runner/drb_command_line.rb
rspec-1.1.4 lib/spec/runner/drb_command_line.rb
rspec-1.1.2 lib/spec/runner/drb_command_line.rb