Module: Pkg::Util::Platform

Defined in:
lib/packaging/util/platform.rb

Class Method Summary collapse

Class Method Details

.artifacts_path(platform_tag, package_url = nil) ⇒ Object



26
27
28
29
# File 'lib/packaging/util/platform.rb', line 26

def artifacts_path(platform_tag, package_url = nil)
  Pkg::Util.deprecate('Pkg::Util::Platform.artifacts_path', 'Pkg::Paths.artifacts_path')
  Pkg::Paths.artifacts_path(platform_tag)
end

.get_attribute(platform_tag, attribute_name) ⇒ Object



21
22
23
24
# File 'lib/packaging/util/platform.rb', line 21

def get_attribute(platform_tag, attribute_name)
  Pkg::Util.deprecate('Pkg::Util::Platform.get_attribute', 'Pkg::Platforms.get_attribute')
  Pkg::Platforms.get_attribute(platform_tag, attribute_name)
end

.parse_platform_tag(platform_tag) ⇒ Object



16
17
18
19
# File 'lib/packaging/util/platform.rb', line 16

def parse_platform_tag(platform_tag)
  Pkg::Util.deprecate('Pkg::Util::Platform.parse_platform_tag', 'Pkg::Platforms.parse_platform_tag')
  Pkg::Platforms.parse_platform_tag(platform_tag)
end

.platform_lookup(platform_tag) ⇒ Object



11
12
13
14
# File 'lib/packaging/util/platform.rb', line 11

def platform_lookup(platform_tag)
  Pkg::Util.deprecate('Pkg::Util::Platform.platform_lookup', 'Pkg::Platforms.platform_lookup')
  Pkg::Platforms.platform_lookup(platform_tag)
end

.platform_tagsObject

DEPRECATED METHODS



6
7
8
9
# File 'lib/packaging/util/platform.rb', line 6

def platform_tags
  Pkg::Util.deprecate('Pkg::Util::Platform.platform_tags', 'Pkg::Platforms.platform_tags')
  Pkg::Platforms.platform_tags
end

.repo_config_path(platform_tag) ⇒ Object



36
37
38
39
# File 'lib/packaging/util/platform.rb', line 36

def repo_config_path(platform_tag)
  Pkg::Util.deprecate('Pkg::Util::Platform.repo_config_path', 'Pkg::Paths.repo_config_path')
  Pkg::Paths.repo_config_path(platform_tag)
end

.repo_path(platform_tag) ⇒ Object



31
32
33
34
# File 'lib/packaging/util/platform.rb', line 31

def repo_path(platform_tag)
  Pkg::Util.deprecate('Pkg::Util::Platform.repo_path', 'Pkg::Paths.repo_path')
  Pkg::Paths.repo_path(platform_tag)
end