Class: GTestInstaller

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ GTestInstaller

Returns a new instance of GTestInstaller.



11
12
13
14
15
16
17
# File 'lib/yesman/gtest_installer.rb', line 11

def initialize options
  @params = options
  @gtest_dir = "gtest"
  @gtest_path = "http://googletest.googlecode.com/svn/trunk/"
  @gtest_local_repo_name = "googletest-read-only"
  @log = Logger.new 
end

Instance Attribute Details

#attr_namesObject (readonly)

Returns the value of attribute attr_names.



9
10
11
# File 'lib/yesman/gtest_installer.rb', line 9

def attr_names
  @attr_names
end

#gtest_dirObject (readonly)

Returns the value of attribute gtest_dir.



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

def gtest_dir
  @gtest_dir
end

#gtest_local_repo_nameObject (readonly)

Returns the value of attribute gtest_local_repo_name.



6
7
8
# File 'lib/yesman/gtest_installer.rb', line 6

def gtest_local_repo_name
  @gtest_local_repo_name
end

#gtest_pathObject (readonly)

Returns the value of attribute gtest_path.



8
9
10
# File 'lib/yesman/gtest_installer.rb', line 8

def gtest_path
  @gtest_path
end

#paramsObject (readonly)

Returns the value of attribute params.



10
11
12
# File 'lib/yesman/gtest_installer.rb', line 10

def params
  @params
end

Instance Method Details

#download_and_installObject



19
20
21
22
23
24
25
26
27
# File 'lib/yesman/gtest_installer.rb', line 19

def download_and_install
  print_start
  create_test_directories
  pull_source
  compile_source
  create_static_lib
  copy_needed_gtest_files
  clean_up_dirs
end