Class: BuildMaster::Java

Inherits:
Object
  • Object
show all
Defined in:
lib/buildmaster/auto/java.rb

Instance Method Summary collapse

Constructor Details

#initialize(java_home = nil) ⇒ Java

Returns a new instance of Java.



3
4
5
6
7
8
9
10
# File 'lib/buildmaster/auto/java.rb', line 3

def initialize(java_home=nil)
  @home = java_home
  if @home.nil?
    @cotta = Cotta.new
  else
    @cotta = @home.cotta
  end
end

Instance Method Details

#versionObject



12
13
14
# File 'lib/buildmaster/auto/java.rb', line 12

def version
  @cotta.shell("#{java_exe} -version")
end