Class: MilkTea::PackageManifest::DependencyView

Inherits:
Data
  • Object
show all
Defined in:
lib/milk_tea/packages/manifest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#gitObject (readonly)

Returns the value of attribute git

Returns:

  • (Object)

    the current value of git



9
10
11
# File 'lib/milk_tea/packages/manifest.rb', line 9

def git
  @git
end

#git_revObject (readonly)

Returns the value of attribute git_rev

Returns:

  • (Object)

    the current value of git_rev



9
10
11
# File 'lib/milk_tea/packages/manifest.rb', line 9

def git_rev
  @git_rev
end

#git_subdirObject (readonly)

Returns the value of attribute git_subdir

Returns:

  • (Object)

    the current value of git_subdir



9
10
11
# File 'lib/milk_tea/packages/manifest.rb', line 9

def git_subdir
  @git_subdir
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



9
10
11
# File 'lib/milk_tea/packages/manifest.rb', line 9

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



9
10
11
# File 'lib/milk_tea/packages/manifest.rb', line 9

def path
  @path
end

#versionObject (readonly)

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



9
10
11
# File 'lib/milk_tea/packages/manifest.rb', line 9

def version
  @version
end

#version_reqObject (readonly)

Returns the value of attribute version_req

Returns:

  • (Object)

    the current value of version_req



9
10
11
# File 'lib/milk_tea/packages/manifest.rb', line 9

def version_req
  @version_req
end

Instance Method Details

#exact_registry_version?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/milk_tea/packages/manifest.rb', line 22

def exact_registry_version?
  registry? && !version.nil?
end

#git_dependency?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/milk_tea/packages/manifest.rb', line 14

def git_dependency?
  !git.nil?
end

#path_dependency?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/milk_tea/packages/manifest.rb', line 10

def path_dependency?
  !path.nil?
end

#registry?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/milk_tea/packages/manifest.rb', line 18

def registry?
  !version_req.nil? && !path_dependency? && !git_dependency?
end