Class: EmberCli::Command
- Inherits:
-
Object
- Object
- EmberCli::Command
- Defined in:
- lib/ember_cli/command.rb
Instance Method Summary collapse
- #build(watch: false) ⇒ Object
-
#initialize(paths:, options: {}) ⇒ Command
constructor
A new instance of Command.
- #test ⇒ Object
Constructor Details
#initialize(paths:, options: {}) ⇒ Command
Returns a new instance of Command.
3 4 5 6 |
# File 'lib/ember_cli/command.rb', line 3 def initialize(paths:, options: {}) @paths = paths @options = end |
Instance Method Details
#build(watch: false) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/ember_cli/command.rb', line 12 def build(watch: false) [ "#{paths.ember} build", "#{watch_flag(watch)}", "--environment #{build_environment}", "--output-path #{paths.dist}", pipe_errors_to_file, pipe_to_log_files, ].join(" ") end |
#test ⇒ Object
8 9 10 |
# File 'lib/ember_cli/command.rb', line 8 def test "#{paths.ember} test --environment test" end |