class Jive::Project
Attributes
path[R]
Public Class Methods
new(path)
click to toggle source
# File lib/jive/project.rb, line 7 def initialize(path) @path = path end
Public Instance Methods
bootstrap(shell)
click to toggle source
# 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
Private Instance Methods
bundler?()
click to toggle source
# File lib/jive/project.rb, line 24 def bundler? path.join("Gemfile").exist? || path.glob("*.gemspec").any? end
yarn?()
click to toggle source
# File lib/jive/project.rb, line 29 def yarn? path.join("yarn.lock").exist? end