Class: Jive::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/jive/project.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject (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