Class: Scene7ize::CLI
- Inherits:
-
Thor
- Object
- Thor
- Scene7ize::CLI
- Defined in:
- lib/scene7ize/cli.rb
Overview
Facade for Scene7ize command line interface managed by [Thor](github.com/wycats/thor). This is the main interface to Scene7ize that is called by the Scene7ize binary ‘bin/scene7ize`. Do not put any logic in here, create a class and delegate instead.
Instance Method Summary collapse
- #parse ⇒ Object
-
#version ⇒ Object
Shows the current version of Scene7ize.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args) ⇒ Object (private)
55 56 57 |
# File 'lib/scene7ize/cli.rb', line 55 def method_missing(meth, *args) help end |
Instance Method Details
#parse ⇒ Object
35 36 37 38 39 |
# File 'lib/scene7ize/cli.rb', line 35 def parse Scene7ize.parse_file([:url_prefix], [:input_file], [:output_file], [:base_path]) end |
#version ⇒ Object
Shows the current version of Scene7ize.
49 50 51 |
# File 'lib/scene7ize/cli.rb', line 49 def version puts "Scene7ize version #{ ::Scene7ize::VERSION }" end |