Class: Fixi::Command::Info

Inherits:
Object
  • Object
show all
Defined in:
lib/fixi/command/info.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.arghelpObject



9
10
11
# File 'lib/fixi/command/info.rb', line 9

def self.arghelp
  "[<dir>]"
end

.detailsObject



13
14
15
# File 'lib/fixi/command/info.rb', line 13

def self.details
  "If no argument is given, the current directory ('.') is assumed."
end

.synopsisObject



5
6
7
# File 'lib/fixi/command/info.rb', line 5

def self.synopsis
  "Display a summary of the index"
end

Instance Method Details

#execute(args) ⇒ Object



17
18
19
20
21
22
# File 'lib/fixi/command/info.rb', line 17

def execute args
  opts = Trollop::options args do
    banner Fixi::Command::banner "info"
  end
  Fixi::Index.new(args[0]).describe
end