Class: Massimo::CLI
- Inherits:
-
Thor
- Object
- Thor
- Massimo::CLI
- Includes:
- Thor::Actions
- Defined in:
- lib/massimo/cli.rb
Instance Method Summary collapse
- #build ⇒ Object
- #new(site_name) ⇒ Object
- #server(port = 3000) ⇒ Object
- #version ⇒ Object
- #watch ⇒ Object
Instance Method Details
#build ⇒ Object
19 20 21 22 23 24 |
# File 'lib/massimo/cli.rb', line 19 def build Kernel.exit Massimo::UI.report_errors { site.process Massimo::UI.say 'massimo has built your site', :growl => true } end |
#new(site_name) ⇒ Object
28 29 30 |
# File 'lib/massimo/cli.rb', line 28 def new(site_name) directory 'site', site_name end |
#server(port = 3000) ⇒ Object
34 35 36 |
# File 'lib/massimo/cli.rb', line 34 def server(port = 3000) Massimo::Server.start(site, port.to_i) end |