Class: Newport::New

Inherits:
Object
  • Object
show all
Defined in:
lib/newport/new.rb

Class Method Summary collapse

Class Method Details

.process(args) ⇒ Object



6
7
8
9
10
# File 'lib/newport/new.rb', line 6

def process(args)
  Newport.logger.abort_with 'fatal: please specify path.'.red unless args[1]
  show_help if args[1] == 'help'
  create_blog args[1]
end