Class: Plans::CLI
Class Method Summary collapse
-
.exit_on_failure? ⇒ Boolean
Override for Thor.
-
.source_root ⇒ Object
Set the source root for Thor::Actions.
Instance Method Summary collapse
- #init ⇒ Object
- #list ⇒ Object
- #new(doc_type) ⇒ Object
- #publish(path = '.') ⇒ Object
- #thumbs(path = '.') ⇒ Object
Class Method Details
.exit_on_failure? ⇒ Boolean
Override for Thor. Have the application exit and return an error code on failure.
19 20 21 |
# File 'lib/plans/cli.rb', line 19 def self.exit_on_failure? true end |
.source_root ⇒ Object
Set the source root for Thor::Actions
13 14 15 |
# File 'lib/plans/cli.rb', line 13 def self.source_root Plans.source_root end |
Instance Method Details
#init ⇒ Object
64 65 66 |
# File 'lib/plans/cli.rb', line 64 def init Init.new(shell, ).do end |
#list ⇒ Object
48 49 50 |
# File 'lib/plans/cli.rb', line 48 def list List.new(shell, ).do end |
#new(doc_type) ⇒ Object
37 38 39 |
# File 'lib/plans/cli.rb', line 37 def new(doc_type) New.new(shell, ).do(doc_type) end |
#publish(path = '.') ⇒ Object
87 88 89 |
# File 'lib/plans/cli.rb', line 87 def publish(path = '.') Publish.new(shell, ).do(path) end |
#thumbs(path = '.') ⇒ Object
113 114 115 |
# File 'lib/plans/cli.rb', line 113 def thumbs(path = '.') Thumbs.new(shell, ).do(path) end |