Class: Jive::Project
- Inherits:
-
Object
- Object
- Jive::Project
- Defined in:
- lib/jive/project.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #bootstrap(shell) ⇒ Object
-
#initialize(path) ⇒ Project
constructor
A new instance of Project.
Constructor Details
#initialize(path) ⇒ Project
Returns a new instance of Project.
7 8 9 |
# File 'lib/jive/project.rb', line 7 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
5 6 7 |
# File 'lib/jive/project.rb', line 5 def path @path end |
Instance Method Details
#bootstrap(shell) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/jive/project.rb', line 11 def bootstrap(shell) tasks = [] tasks << [:asdf, "install"] tasks << [:bundle, "install"] if bundler? tasks << [:yarn, "install"] if yarn? shell.run_safely do shell.run_each(tasks) end end |