class Plans::CLI

Public Class Methods

exit_on_failure?() click to toggle source

Override for Thor. Have the application exit and return an error code on failure.

# File lib/plans/cli.rb, line 19
def self.exit_on_failure?
  true
end
source_root() click to toggle source

Set the source root for Thor::Actions

# File lib/plans/cli.rb, line 13
def self.source_root
  Plans.source_root
end

Public Instance Methods

init() click to toggle source
# File lib/plans/cli.rb, line 64
def init
  Init.new(shell, options).do
end
list() click to toggle source
# File lib/plans/cli.rb, line 48
def list
  List.new(shell, options).do
end
new(doc_type) click to toggle source
# File lib/plans/cli.rb, line 37
def new(doc_type)
  New.new(shell, options).do(doc_type)
end
publish(path = '.') click to toggle source
# File lib/plans/cli.rb, line 87
def publish(path = '.')
  Publish.new(shell, options).do(path)
end
thumbs(path = '.') click to toggle source
# File lib/plans/cli.rb, line 113
def thumbs(path = '.')
  Thumbs.new(shell, options).do(path)
end