Sha256: 19f291f5786e1d4ce31289a6d38e63d27f5a2b70ffd51b8f9165cb1c7eedea22
Contents?: true
Size: 511 Bytes
Versions: 8
Compression:
Stored size: 511 Bytes
Contents
class Terraspace::CLI class List def initialize(options={}) @options = options @type_dir = normalized_type end def run Dir.glob("{app,vendor}/{modules,stacks}/*").sort.each do |path| if @type_dir puts path if path.include?("/#{@type_dir}/") else puts path end end end private def normalized_type type = @options[:type] if %w[stack module].include?(type) type.pluralize end end end end
Version data entries
8 entries across 8 versions & 1 rubygems