Class: Namespacer::CLI
- Inherits:
-
Thor
- Object
- Thor
- Namespacer::CLI
- Defined in:
- lib/namespacer/cli.rb
Overview
Facade for Namespacer command line interface managed by [Thor](github.com/wycats/thor). This is the main interface to Namespacer that is called by the Namespacer binary ‘bin/Namespacer`. Do not put any logic in here, create a class and delegate instead.
Instance Method Summary collapse
- #prefix ⇒ Object
-
#version ⇒ Object
Shows the current version of Namespacer.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args) ⇒ Object (private)
46 47 48 |
# File 'lib/namespacer/cli.rb', line 46 def method_missing(meth, *args) help end |
Instance Method Details
#prefix ⇒ Object
26 27 28 29 30 |
# File 'lib/namespacer/cli.rb', line 26 def prefix Namespacer.prefix([:prefix], [:alt_prefix]) end |
#version ⇒ Object
Shows the current version of Namespacer.
40 41 42 |
# File 'lib/namespacer/cli.rb', line 40 def version puts "Namespacer version #{ ::Namespacer::VERSION }" end |