Class: Bower::Command

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cwd) ⇒ Command

Returns a new instance of Command.



7
8
9
# File 'lib/rab/bower/command.rb', line 7

def initialize(cwd)
  @cwd = cwd
end

Instance Attribute Details

#cwdObject (readonly)

Returns the value of attribute cwd.



5
6
7
# File 'lib/rab/bower/command.rb', line 5

def cwd
  @cwd
end

Instance Method Details

#install!Object



11
12
13
# File 'lib/rab/bower/command.rb', line 11

def install!
  bower(cwd, "install --production --force-latest")
end

#list!Object



15
16
17
# File 'lib/rab/bower/command.rb', line 15

def list!
  bower(cwd, "list --offline")
end

#list_paths!Object



19
20
21
# File 'lib/rab/bower/command.rb', line 19

def list_paths!
  bower(cwd, "list --paths --offline")
end