Class: Machined::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/machined/cli.rb

Constant Summary collapse

SAVED_OPTIONS_FILE =
'.machined'

Instance Method Summary collapse

Instance Method Details

#compileObject



29
30
31
# File 'lib/machined/cli.rb', line 29

def compile
  machined.compile
end

#new(site_name) ⇒ Object



35
36
37
# File 'lib/machined/cli.rb', line 35

def new(site_name)
  directory 'site', site_name
end

#serverObject



54
55
56
57
# File 'lib/machined/cli.rb', line 54

def server
  require 'rack'
  Rack::Server.start rack_options
end

#versionObject



61
62
63
# File 'lib/machined/cli.rb', line 61

def version
  say VERSION
end