Class: Staticd::CLI
- Inherits:
-
Object
- Object
- Staticd::CLI
- Defined in:
- lib/staticd/cli.rb
Instance Method Summary collapse
-
#initialize ⇒ CLI
constructor
A new instance of CLI.
- #run(*args) ⇒ Object
Constructor Details
#initialize ⇒ CLI
Returns a new instance of CLI.
7 8 9 10 11 12 13 |
# File 'lib/staticd/cli.rb', line 7 def initialize @gli = GLIObject.new @gli.program_desc("Staticd HTTP and API server") @gli.version(Staticd::VERSION) @gli.on_error { |exception| raise exception } build_commands end |
Instance Method Details
#run(*args) ⇒ Object
15 16 17 |
# File 'lib/staticd/cli.rb', line 15 def run(*args) @gli.run(*args) end |