Class: LicenseScout::DependencyManager::Godep
- Inherits:
-
Base
- Object
- Base
- LicenseScout::DependencyManager::Godep
show all
- Defined in:
- lib/license_scout/dependency_manager/godep.rb
Instance Attribute Summary
Attributes inherited from Base
#directory
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#dependencies ⇒ Object
45
46
47
48
49
50
51
52
53
|
# File 'lib/license_scout/dependency_manager/godep.rb', line 45
def dependencies
godeps["Deps"].map do |pkg_info|
dep_name = pkg_info["ImportPath"]
dep_version = pkg_info["Comment"] || pkg_info["Rev"]
dep_path = gopath(dep_name)
new_dependency(dep_name, dep_version, dep_path)
end.compact
end
|
#detected? ⇒ Boolean
41
42
43
|
# File 'lib/license_scout/dependency_manager/godep.rb', line 41
def detected?
File.exist?(root_godeps_file)
end
|
#install_command ⇒ Object
37
38
39
|
# File 'lib/license_scout/dependency_manager/godep.rb', line 37
def install_command
"godep restore"
end
|
#name ⇒ Object
25
26
27
|
# File 'lib/license_scout/dependency_manager/godep.rb', line 25
def name
"golang_godep"
end
|
#signature ⇒ Object
33
34
35
|
# File 'lib/license_scout/dependency_manager/godep.rb', line 33
def signature
"Godeps/Godeps.json file"
end
|
#type ⇒ Object
29
30
31
|
# File 'lib/license_scout/dependency_manager/godep.rb', line 29
def type
"golang"
end
|