Class: Fitnesse

Inherits:
Object
  • Object
show all
Defined in:
lib/fitnesse.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Fitnesse

Returns a new instance of Fitnesse.



3
4
5
# File 'lib/fitnesse.rb', line 3

def initialize(argv)
  @argv = argv
end

Instance Attribute Details

#argvObject (readonly)

Returns the value of attribute argv.



2
3
4
# File 'lib/fitnesse.rb', line 2

def argv
  @argv
end

Instance Method Details

#jar_pathObject



11
12
13
14
# File 'lib/fitnesse.rb', line 11

def jar_path
  dir = File.dirname(__FILE__)
  File.expand_path("#{dir}/../core/fitnesse.jar")
end

#startObject



7
8
9
# File 'lib/fitnesse.rb', line 7

def start
  system "java -cp #{jar_path} fitnesse.FitNesse #{argv.join(' ')}"
end