Class: Pieces::CLI
- Inherits:
-
Thor
- Object
- Thor
- Pieces::CLI
- Defined in:
- lib/pieces/cli.rb
Instance Method Summary collapse
- #build(path = '.') ⇒ Object
- #init(path = '.') ⇒ Object
- #server(path = Dir.pwd) ⇒ Object
- #version ⇒ Object
Instance Method Details
#build(path = '.') ⇒ Object
17 18 19 20 21 |
# File 'lib/pieces/cli.rb', line 17 def build(path = '.') print "Building pieces into #{path}... " Pieces::Builder.build(path: path) puts 'done.' end |
#init(path = '.') ⇒ Object
10 11 12 13 14 |
# File 'lib/pieces/cli.rb', line 10 def init(path = '.') print "Placing new pieces in #{path}... " Pieces::Generator.init(path: path) puts 'done.' end |