Class: GTestInstaller
- Inherits:
-
Object
- Object
- GTestInstaller
- Defined in:
- lib/yesman/gtest_installer.rb
Instance Attribute Summary collapse
-
#attr_names ⇒ Object
readonly
Returns the value of attribute attr_names.
-
#gtest_dir ⇒ Object
readonly
Returns the value of attribute gtest_dir.
-
#gtest_local_repo_name ⇒ Object
readonly
Returns the value of attribute gtest_local_repo_name.
-
#gtest_path ⇒ Object
readonly
Returns the value of attribute gtest_path.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
- #download_and_install ⇒ Object
-
#initialize(options) ⇒ GTestInstaller
constructor
A new instance of GTestInstaller.
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 @params = @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_names ⇒ Object (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_dir ⇒ Object (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_name ⇒ Object (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_path ⇒ Object (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 |
#params ⇒ Object (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_install ⇒ Object
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 |