lib/poise_boiler/helpers/kitchen.rb
# Expand the requested platforms using {PLATFORM_ALIASES}.
#
# @return [Array<String>]
Expand the requested platforms using {PLATFORM_ALIASES}.
Expand the requested platforms using { PLATFORM_ALIASES } .
def expand_platforms
        platforms = Array(options[:platforms] || (ENV['CI'] ? 'linux' : 'all'))
        last_platforms = []
        while platforms != last_platforms
          last_platforms = platforms
          platforms = platforms.map {|p| PLATFORM_ALIASES[p] || p}
          platforms.flatten!
          platforms.uniq!
        end
        platforms
      end
def expand_platforms platforms = Array ( options [ :platforms ] || ( ENV [ 'CI' ] ? 'linux' : 'all' ) ) last_platforms = [ ] while platforms != last_platforms last_platforms = platforms platforms = platforms . map { | p | PLATFORM_ALIASES [ p ] || p } platforms . flatten! platforms . uniq! end platforms end
Expand the requested platforms using {PLATFORM_ALIASES}.
Expand the requested platforms using { PLATFORM_ALIASES } .
# Default platform is linux unless overridden from the helper options. # This is probably not the most effcient solution but oh well.
None
Array<String>