Skip to content
Snippets Groups Projects
Unverified Commit 1a514852 authored by Markus Reiter's avatar Markus Reiter Committed by GitHub
Browse files

Merge pull request #8339 from reitermarkus/documentation

Improve documentation and add `@api private` to internal classes.
parents 2fe16b07 097ef39b
No related branches found
No related tags found
No related merge requests found
Showing
with 60 additions and 0 deletions
......@@ -4,6 +4,9 @@ require "cask/artifact/moved"
module Cask
module Artifact
# Artifact corresponding to the `internet_plugin` stanza.
#
# @api private
class InternetPlugin < Moved
end
end
......
......@@ -4,6 +4,9 @@ require "cask/artifact/symlinked"
module Cask
module Artifact
# Artifact corresponding to the `manpage` stanza.
#
# @api private
class Manpage < Symlinked
attr_reader :section
......
......@@ -4,6 +4,9 @@ require "cask/artifact/moved"
module Cask
module Artifact
# Artifact corresponding to the `mdimporter` stanza.
#
# @api private
class Mdimporter < Moved
def self.english_name
"Spotlight metadata importer"
......
......@@ -4,6 +4,9 @@ require "cask/artifact/relocated"
module Cask
module Artifact
# Superclass for all artifacts which are installed by moving them to the target location.
#
# @api private
class Moved < Relocated
def self.english_description
"#{english_name}s"
......
......@@ -10,6 +10,9 @@ using HashValidator
module Cask
module Artifact
# Artifact corresponding to the `pkg` stanza.
#
# @api private
class Pkg < AbstractArtifact
attr_reader :pkg_relative_path, :path, :stanza_options
......
......@@ -4,6 +4,9 @@ require "cask/artifact/abstract_flight_block"
module Cask
module Artifact
# Artifact corresponding to the `postflight` stanza.
#
# @api private
class PostflightBlock < AbstractFlightBlock
end
end
......
......@@ -4,6 +4,9 @@ require "cask/artifact/abstract_flight_block"
module Cask
module Artifact
# Artifact corresponding to the `preflight` stanza.
#
# @api private
class PreflightBlock < AbstractFlightBlock
end
end
......
......@@ -4,6 +4,9 @@ require "cask/artifact/moved"
module Cask
module Artifact
# Artifact corresponding to the `prefpane` stanza.
#
# @api private
class Prefpane < Moved
def self.english_name
"Preference Pane"
......
......@@ -4,6 +4,9 @@ require "cask/artifact/moved"
module Cask
module Artifact
# Artifact corresponding to the `qlplugin` stanza.
#
# @api private
class Qlplugin < Moved
def self.english_name
"QuickLook Plugin"
......
......@@ -7,6 +7,9 @@ using HashValidator
module Cask
module Artifact
# Superclass for all artifacts which have a source and a target location.
#
# @api private
class Relocated < AbstractArtifact
def self.from_args(cask, *args)
source_string, target_hash = args
......
......@@ -4,6 +4,9 @@ require "cask/artifact/moved"
module Cask
module Artifact
# Artifact corresponding to the `screen_saver` stanza.
#
# @api private
class ScreenSaver < Moved
end
end
......
......@@ -4,6 +4,9 @@ require "cask/artifact/moved"
module Cask
module Artifact
# Artifact corresponding to the `service` stanza.
#
# @api private
class Service < Moved
end
end
......
......@@ -4,6 +4,9 @@ require "cask/artifact/abstract_artifact"
module Cask
module Artifact
# Artifact corresponding to the `stage_only` stanza.
#
# @api private
class StageOnly < AbstractArtifact
def self.from_args(cask, *args)
raise CaskInvalidError.new(cask.token, "'stage_only' takes only a single argument: true") if args != [true]
......
......@@ -4,6 +4,9 @@ require "cask/artifact/moved"
module Cask
module Artifact
# Artifact corresponding to the `suite` stanza.
#
# @api private
class Suite < Moved
def self.english_name
"App Suite"
......
......@@ -4,6 +4,9 @@ require "cask/artifact/relocated"
module Cask
module Artifact
# Superclass for all artifacts which are installed by symlinking them to the target location.
#
# @api private
class Symlinked < Relocated
def self.link_type_english_name
"Symlink"
......
......@@ -4,6 +4,9 @@ require "cask/artifact/abstract_uninstall"
module Cask
module Artifact
# Artifact corresponding to the `uninstall` stanza.
#
# @api private
class Uninstall < AbstractUninstall
def uninstall_phase(**options)
ORDERED_DIRECTIVES.reject { |directive_sym| directive_sym == :rmdir }
......
......@@ -4,6 +4,9 @@ require "cask/artifact/moved"
module Cask
module Artifact
# Artifact corresponding to the `vst3_plugin` stanza.
#
# @api private
class Vst3Plugin < Moved
end
end
......
......@@ -4,6 +4,9 @@ require "cask/artifact/moved"
module Cask
module Artifact
# Artifact corresponding to the `vst_plugin` stanza.
#
# @api private
class VstPlugin < Moved
end
end
......
......@@ -4,6 +4,9 @@ require "cask/artifact/abstract_uninstall"
module Cask
module Artifact
# Artifact corresponding to the `zap` stanza.
#
# @api private
class Zap < AbstractUninstall
def zap_phase(**options)
dispatch_uninstall_directives(**options)
......
......@@ -8,6 +8,9 @@ require "utils/git"
require "utils/notability"
module Cask
# Audit a cask for various problems.
#
# @api private
class Audit
extend Predicable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment