Class: EmberCli::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/ember_cli/command.rb

Instance Method Summary collapse

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 = 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

#testObject



8
9
10
# File 'lib/ember_cli/command.rb', line 8

def test
  "#{paths.ember} test --environment test"
end