class Guard::Berkshelf
Constants
- VERSION
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
# File lib/guard/berkshelf.rb, line 6 def initialize(options = {}) @berks = ::Berkshelf::Cli.new super end
Public Instance Methods
reload()
click to toggle source
# File lib/guard/berkshelf.rb, line 19 def reload @berks = ::Berkshelf::Cli.new end
run_all()
click to toggle source
# File lib/guard/berkshelf.rb, line 23 def run_all _run end
run_on_additions(paths)
click to toggle source
# File lib/guard/berkshelf.rb, line 27 def run_on_additions(paths) _run end
run_on_modifications(paths)
click to toggle source
# File lib/guard/berkshelf.rb, line 31 def run_on_modifications(paths) _run end
run_on_removals(paths)
click to toggle source
# File lib/guard/berkshelf.rb, line 35 def run_on_removals(paths) true end
start()
click to toggle source
# File lib/guard/berkshelf.rb, line 11 def start true end
stop()
click to toggle source
# File lib/guard/berkshelf.rb, line 15 def stop true end
Private Instance Methods
_run()
click to toggle source
# File lib/guard/berkshelf.rb, line 45 def _run File.exists?('Berksfile.lock') ? berks.update : berks.install end
berks()
click to toggle source
# File lib/guard/berkshelf.rb, line 41 def berks @berks end