Class: Info

Inherits:
Thor
  • Object
show all
Includes:
Mixin::Shell
Defined in:
lib/fox/interface/thor/info.rb

Instance Method Summary collapse

Methods included from Mixin::Shell

#execute, #initialize, #run, #version, #which

Methods included from Mixin::Guess

#guess_version, #initialize

Instance Method Details

#overviewObject



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/fox/interface/thor/info.rb', line 35

def overview

  # Default symbol action list to find info for
  default = %i(
                general
                project
                ruby 
              )

  # Make sure if we have a --without-* opts to skip work
  options.each_pair do |option, skip|
    next unless( skip )
    default.delete_if { |item| option =~ %r{#{item.to_s}}i }
  end

  # Execute scan & print
  default.each do |item|
    data = scan_for item
    next if data.andand.broken.nil?

    self.send :pretty_print, data
  end # of default.each

end