Method: Forge::CLI#watch

Defined in:
lib/forge/cli.rb

#watchObject



38
39
40
41
42
43
44
45
46
# File 'lib/forge/cli.rb', line 38

def watch
  project = Forge::Project.new('.', self, nil, options[:config])

  # Empty the build directory before starting up to clean out old files
  FileUtils.rm_rf project.build_path
  FileUtils.mkdir_p project.build_path

  Forge::Guard.start(project, self)
end