Class: Rascut::Plugin::GenerateCtags

Inherits:
Base
  • Object
show all
Defined in:
lib/rascut/plugin/generate_ctags.rb

Instance Method Summary collapse

Methods inherited from Base

#config, #initialize

Constructor Details

This class inherits a constructor from Rascut::Plugin::Base

Instance Method Details

#generate_ctagsObject



18
19
20
# File 'lib/rascut/plugin/generate_ctags.rb', line 18

def generate_ctags
  `#{@ctags_cmd} -R --langmap=actionscript:.as -f #{@command.root.join('tags')}`
end

#runObject



13
14
15
16
# File 'lib/rascut/plugin/generate_ctags.rb', line 13

def run
  @ctags_cmd = config[:ctags] || 'ctags'
  @command.file_observer.add_update_handler method(:generate_ctags)
end