class Guard::KonachaRails
Attributes
runner[RW]
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
# File lib/guard/konacha-rails.rb, line 13 def initialize(options = {}) super @runner = Guard::KonachaRails::Runner.new(options) end
template(plugin_location)
click to toggle source
# File lib/guard/konacha-rails.rb, line 31 def self.template(plugin_location) File.read(template_path(plugin_location)) end
template_path(plugin_location)
click to toggle source
# File lib/guard/konacha-rails.rb, line 35 def self.template_path(plugin_location) # workaround because Guard discards the '-' when detecting template path File.join(plugin_location, 'lib', 'guard', 'konacha-rails', 'templates', 'Guardfile') end
Public Instance Methods
run_all()
click to toggle source
# File lib/guard/konacha-rails.rb, line 23 def run_all runner.run end
run_on_changes(paths = [])
click to toggle source
# File lib/guard/konacha-rails.rb, line 27 def run_on_changes(paths = []) runner.run(paths) end
start()
click to toggle source
# File lib/guard/konacha-rails.rb, line 19 def start runner.start end