Module: Pkg::Util::Platform
- Defined in:
- lib/packaging/util/platform.rb
Class Method Summary collapse
- .artifacts_path(platform_tag, package_url = nil) ⇒ Object
- .get_attribute(platform_tag, attribute_name) ⇒ Object
- .parse_platform_tag(platform_tag) ⇒ Object
- .platform_lookup(platform_tag) ⇒ Object
-
.platform_tags ⇒ Object
DEPRECATED METHODS.
- .repo_config_path(platform_tag) ⇒ Object
- .repo_path(platform_tag) ⇒ Object
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_tags ⇒ Object
DEPRECATED METHODS
6 7 8 9 |
# File 'lib/packaging/util/platform.rb', line 6 def Pkg::Util.deprecate('Pkg::Util::Platform.platform_tags', 'Pkg::Platforms.platform_tags') Pkg::Platforms. end |