Class: Pixab::UserInfo
- Inherits:
-
Object
- Object
- Pixab::UserInfo
- Defined in:
- lib/Utilities/UserInfo.rb
Instance Attribute Summary collapse
-
#platform ⇒ Object
Returns the value of attribute platform.
Instance Method Summary collapse
Instance Attribute Details
#platform ⇒ Object
Returns the value of attribute platform.
8 9 10 |
# File 'lib/Utilities/UserInfo.rb', line 8 def platform @platform end |
Instance Method Details
#git_repos ⇒ Object
14 15 16 17 18 |
# File 'lib/Utilities/UserInfo.rb', line 14 def git_repos git_repos = GitUtils.find_git_repos(Dir.pwd) git_repos.concat(git_sub_repos) return git_repos end |
#git_sub_repos ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/Utilities/UserInfo.rb', line 20 def git_sub_repos sub_repos_path = nil if platform.is_android parent_dir = File.dirname(Dir.pwd) sub_repos_path = File.join(parent_dir, 'pixab_libraries') end if sub_repos_path.nil? return [] end sub_git_repos = GitUtils.find_git_repos(sub_repos_path) return sub_git_repos end |