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.



5
6
7
8
# File 'lib/ember_cli/command.rb', line 5

def initialize(paths:, options: {})
  @paths = paths
  @options = options
end

Instance Method Details

#build(watch: false) ⇒ Object



16
17
18
# File 'lib/ember_cli/command.rb', line 16

def build(watch: false)
  ember_build(watch: watch)
end

#testObject



10
11
12
13
14
# File 'lib/ember_cli/command.rb', line 10

def test
  line = Cocaine::CommandLine.new(paths.ember, "test --environment test")

  line.command
end