Class: LabelWeaver::CLI::Actions::Develop::Start

Inherits:
Sod::Action
  • Object
show all
Defined in:
lib/label_weaver/cli/actions/develop/start.rb

Instance Method Summary collapse

Instance Method Details

#call(*args) ⇒ Object



19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/label_weaver/cli/actions/develop/start.rb', line 19

def call(*args)
  unless xdg_config.active
    logger.error("No configuration found. Are you in the correct directory?")
    kernel.exit(1)
  end

  Hooks.new.run(:develop, :before_start)

  repo.clone_or_update
  copy_repository_files

  Hooks.new.run(:develop, :after_start)
end