Sha256: 4ca2b8bf1d52ceb772ed2d146e3e32dbaa839b5e332bfdceb554d187abf35d35
Contents?: true
Size: 583 Bytes
Versions: 4
Compression:
Stored size: 583 Bytes
Contents
class Lono::CLI class List < Base attr_reader :options def initialize(options={}) @options = options end def run list_type("blueprints") if show?("blueprint") list_type("configsets") if show?("configset") list_type("extensions") if show?("extension") end private def list_type(type) Dir.glob("#{Lono.root}/{app,vendor}/#{type}/*").each do |path| logger.info pretty_path(path) end end def show?(type) @options[:type] == type || @options[:type].nil? || @options[:type] == "all" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lono-8.0.0.pre.rc6 | lib/lono/cli/list.rb |
lono-8.0.0.pre.rc5 | lib/lono/cli/list.rb |
lono-8.0.0.pre.rc4 | lib/lono/cli/list.rb |
lono-8.0.0.pre.rc3 | lib/lono/cli/list.rb |