Class: Apiary::CLI
- Inherits:
-
Thor
- Object
- Thor
- Apiary::CLI
- Defined in:
- lib/apiary/cli.rb
Instance Method Summary collapse
- #archive ⇒ Object
- #fetch ⇒ Object
- #preview ⇒ Object
- #publish ⇒ Object
- #styleguide ⇒ Object
- #version ⇒ Object
Instance Method Details
#archive ⇒ Object
17 18 19 20 |
# File 'lib/apiary/cli.rb', line 17 def archive cmd = Apiary::Command::Archive.new cmd.execute end |
#fetch ⇒ Object
27 28 29 30 |
# File 'lib/apiary/cli.rb', line 27 def fetch cmd = Apiary::Command::Fetch.new cmd.execute end |
#preview ⇒ Object
43 44 45 46 |
# File 'lib/apiary/cli.rb', line 43 def preview cmd = Apiary::Command::Preview.new cmd.execute end |
#publish ⇒ Object
56 57 58 59 |
# File 'lib/apiary/cli.rb', line 56 def publish cmd = Apiary::Command::Publish.new cmd.execute end |
#styleguide ⇒ Object
69 70 71 72 |
# File 'lib/apiary/cli.rb', line 69 def styleguide cmd = Apiary::Command::Styleguide.new cmd.execute end |
#version ⇒ Object
77 78 79 |
# File 'lib/apiary/cli.rb', line 77 def version puts Apiary::VERSION end |