Class: Bower::Command
- Inherits:
-
Object
- Object
- Bower::Command
- Defined in:
- lib/rab/bower/command.rb
Instance Attribute Summary collapse
-
#cwd ⇒ Object
readonly
Returns the value of attribute cwd.
Instance Method Summary collapse
-
#initialize(cwd) ⇒ Command
constructor
A new instance of Command.
- #install! ⇒ Object
- #list! ⇒ Object
- #list_paths! ⇒ Object
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
#cwd ⇒ Object (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 |