Class: DrJekyll::ListCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/drjekyll/cli/list.rb

Overview

find a better name ??

Instance Method Summary collapse

Constructor Details

#initialize(catalog, opts) ⇒ ListCommand

Returns a new instance of ListCommand.



8
9
10
11
# File 'lib/drjekyll/cli/list.rb', line 8

def initialize( catalog, opts )
  @catalog = catalog
  @opts    = opts
end

Instance Method Details

#list(filter = nil) ⇒ Object



18
19
20
# File 'lib/drjekyll/cli/list.rb', line 18

def list( filter=nil )
  @catalog.list( filter )
end

#run(args) ⇒ Object



13
14
15
16
# File 'lib/drjekyll/cli/list.rb', line 13

def run( args )
  filter = args[0]   ## optional filter (search query)
  list( filter )
end