Class: Cask::Artifact::AppImage Private
- Defined in:
- cask/artifact/appimage.rb
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Constant Summary
Constants inherited from AbstractArtifact
Cask::Artifact::AbstractArtifact::DirectivesType
Instance Attribute Summary
Attributes inherited from AbstractArtifact
Instance Method Summary collapse
- #link(force: false, adopt: false, command: SystemCommand, **_options) ⇒ void private
- #resolve_target(target, base_dir: nil) ⇒ Pathname private
Methods inherited from Symlinked
english_description, #install_phase, link_type_english_name, #summarize_installed, #uninstall_phase
Methods included from OS::Mac::Cask::Artifact::Symlinked
Methods inherited from Relocated
from_args, #initialize, #source, #summarize, #target, #to_a
Methods included from OS::Linux::Cask::Artifact::Relocated
Methods inherited from AbstractArtifact
#config, dirmethod, dsl_key, english_article, english_name, #initialize, read_script_arguments, #sort_order, #staged_path_join_executable, #summarize, #to_args
Methods included from Utils::Output::Mixin
#issue_reporting_message, #odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_outside_github_actions, #pretty_deprecated, #pretty_disabled, #pretty_duration, #pretty_install_status, #pretty_installed, #pretty_outdated, #pretty_uninstalled, #pretty_upgradable
Constructor Details
This class inherits a constructor from Cask::Artifact::Relocated
Instance Method Details
#link(force: false, adopt: false, command: SystemCommand, **_options) ⇒ void
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
This method returns an undefined value.
22 23 24 25 26 27 28 29 30 31 |
# File 'cask/artifact/appimage.rb', line 22 def link(force: false, adopt: false, command: SystemCommand, **) super return if source.executable? if source.writable? FileUtils.chmod "+x", source else command.run!("chmod", args: ["+x", source], sudo: true) end end |
#resolve_target(target, base_dir: nil) ⇒ Pathname
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
10 11 12 |
# File 'cask/artifact/appimage.rb', line 10 def resolve_target(target, base_dir: nil) Pathname.new("#{config.appimagedir}/#{target}") end |