class Pieces::CLI

Public Instance Methods

build(path = '.') click to toggle source
# File lib/pieces/cli.rb, line 14
def build(path = '.')
  print "Building pieces into #{path}... "
  Pieces::Builder.build(path: path)
  puts 'done.'
end
init(path = '.') click to toggle source
# File lib/pieces/cli.rb, line 7
def init(path = '.')
  print "Placing new pieces in #{path}... "
  Pieces::Generator.init(path: path)
  puts 'done.'
end
server(path = Dir.pwd) click to toggle source
# File lib/pieces/cli.rb, line 23
def server(path = Dir.pwd)
  puts "Serving pieces from #{path}... "
  Pieces::Server.start(path: path)
end
version() click to toggle source
# File lib/pieces/cli.rb, line 31
def version
  puts "pieces v#{Pieces::VERSION}"
end