Class: Hanami::Assets::CLI
- Inherits:
-
Object
- Object
- Hanami::Assets::CLI
- Defined in:
- lib/hanami/sprockets/cli.rb
Overview
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(args) ⇒ CLI
constructor
A new instance of CLI.
Constructor Details
#initialize(args) ⇒ CLI
Returns a new instance of CLI.
16 17 18 19 20 21 |
# File 'lib/hanami/sprockets/cli.rb', line 16 def initialize(args) @args = args @command = nil = {} @root = Pathname.pwd end |
Class Method Details
.start(args) ⇒ Object
11 12 13 |
# File 'lib/hanami/sprockets/cli.rb', line 11 def start(args) new(args).call end |
Instance Method Details
#call ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/hanami/sprockets/cli.rb', line 23 def call case @command when "compile" compile when "watch" watch else show_help end end |