Class: Guard::CtagsBundler
- Inherits:
-
Plugin
- Object
- Plugin
- Guard::CtagsBundler
- Defined in:
- lib/guard/ctags-bundler.rb,
lib/guard/ctags-bundler/ctags_generator.rb
Defined Under Namespace
Classes: CtagsGenerator
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ CtagsBundler
constructor
A new instance of CtagsBundler.
- #run_on_changes(paths) ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ CtagsBundler
Returns a new instance of CtagsBundler.
10 11 12 13 |
# File 'lib/guard/ctags-bundler.rb', line 10 def initialize( = {}) super = ::Guard::::.new() end |
Class Method Details
.add_callback(*args) ⇒ Object
36 37 38 |
# File 'lib/guard/ctags-bundler.rb', line 36 def self.add_callback(*args) ::Guard::Plugin::Hooker.add_callback(*args) end |
Instance Method Details
#run_on_changes(paths) ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/guard/ctags-bundler.rb', line 22 def run_on_changes(paths) if paths.include?('Gemfile.lock') UI.info "regenerating bundler tags..." . end ruby_files = paths.reject {|f| f == 'Gemfile.lock'} if ruby_files.any? UI.info "regenerating project tags..." . end end |
#start ⇒ Object
15 16 17 18 19 20 |
# File 'lib/guard/ctags-bundler.rb', line 15 def start UI.info 'Guard::CtagsBundler is running!' . . . if [:stdlib] end |