class MStrap::ProfileFetcher
- MStrap::ProfileFetcher
- Reference
- Object
Included Modules
Defined in:
mstrap/profile_fetcher.crConstructors
Instance Method Summary
-
#config : MStrap::Defs::ProfileConfigDef
Profile configuration definition
-
#fetch!
Fetch or update the profile
-
#force? : Bool
Returns whether to force profile update
-
#git_url?
Returns whether the profile's URL is a Git URL
-
#https_url?
Returns whether the profile's URL is an HTTP URL (that is not also a Git URL)
-
#outdated_revision?
Returns whether the profile is outdated.
-
#should_update?
Returns whether to update the profile
-
#url : URI
Returns normalized URL for profile
Instance methods inherited from module MStrap::DSL::System
cmd(env : Hash | Nil, command : String, args : Array(String) | Nil, **kwargs)
cmd,
has_command?(command_name : String, **kwargs) : Bool
has_command?
Instance methods inherited from module MStrap::DSL::Logging
log(msg)
log,
logc(msg)
logc,
logd(msg)
logd,
logn(msg)
logn,
logw(msg)
logw,
success(msg)
success
Constructor Detail
Instance Method Detail
def outdated_revision?
#
Returns whether the profile is outdated.
- For git profiles, this is based on whether the checked out Git ref
differs from that of the ref recorded for
revision
in the configuration. - For HTTPS profiles, this is based on the checksum recorded for
revision
in the configuration.