Class: Bjork::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/bjork/cli.rb

Instance Method Summary collapse

Instance Method Details

#create(name) ⇒ Object



12
13
14
15
16
17
# File 'lib/bjork/cli.rb', line 12

def create(name)
  say "Creating #{name}"
  require "bjork/generator"

  Bjork::Generator.new([name]).invoke_all
end

#serverObject



20
21
22
23
24
# File 'lib/bjork/cli.rb', line 20

def server
  # TODO Move into server file
  require "bjork"
  Bjork::Server.run!
end

#versionObject



6
7
8
9
# File 'lib/bjork/cli.rb', line 6

def version
  require "bjork/version"
  say "Bjork #{VERSION}"
end