class MStrap::ProfileFetcher

Included Modules

Defined in:

mstrap/profile_fetcher.cr

Constructors

Instance Method Summary

Instance methods inherited from module MStrap::DSL::System

cmd(env : Hash?, command : String, args : Array(String)?, shell = true, input = Process::Redirect::Inherit, output = Process::Redirect::Inherit, error = Process::Redirect::Inherit, quiet = false, sudo = false) cmd

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

def self.new(config : Defs::ProfileConfigDef, force = false) #

[View source]

Instance Method Detail

Profile configuration definition


[View source]
def fetch! #

Fetch or update the profile


[View source]
def force? : Bool #

Returns whether to force profile update


[View source]
def git_url? #

Returns whether the profile's URL is a Git URL


[View source]
def https_url? #

Returns whether the profile's URL is an HTTP URL (that is not also a Git URL)


[View source]
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.

[View source]
def should_update? #

Returns whether to update the profile


[View source]
def url : URI #

Returns normalized URL for profile


[View source]