Class: Rwm::Commands::Bootstrap

Inherits:
Object
  • Object
show all
Defined in:
lib/rwm/commands/bootstrap.rb

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Bootstrap

Returns a new instance of Bootstrap.



6
7
8
# File 'lib/rwm/commands/bootstrap.rb', line 6

def initialize(argv)
  @argv = argv
end

Instance Method Details

#runObject



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/rwm/commands/bootstrap.rb', line 10

def run
  workspace = Workspace.find

  bootstrap_root(workspace)
  setup_hooks(workspace)

  graph = DependencyGraph.build(workspace)
  bootstrap_packages(workspace, graph)
  save_graph(workspace, graph)
  validate_conventions(workspace, graph)
  update_vscode_workspace(workspace)

  puts
  puts "Bootstrap complete!"
  0
end