Class: Guard::Nanoc
- Inherits:
-
Plugin
- Object
- Plugin
- Guard::Nanoc
- Defined in:
- lib/guard/nanoc.rb,
lib/guard/nanoc/live_command.rb
Defined Under Namespace
Classes: LiveCommand
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Nanoc
constructor
A new instance of Nanoc.
- #run_all ⇒ Object
- #run_on_changes(_paths) ⇒ Object
- #run_on_removals(_paths) ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Nanoc
Returns a new instance of Nanoc.
17 18 19 20 |
# File 'lib/guard/nanoc.rb', line 17 def initialize( = {}) @dir = [:dir] || '.' super end |
Class Method Details
.live_cmd ⇒ Object
10 11 12 13 14 15 |
# File 'lib/guard/nanoc.rb', line 10 def self.live_cmd @_live_cmd ||= begin path = File.join(File.dirname(__FILE__), 'nanoc', 'live_command.rb') Cri::Command.load_file(path, infer_name: true) end end |
Instance Method Details
#run_all ⇒ Object
27 28 29 |
# File 'lib/guard/nanoc.rb', line 27 def run_all recompile_in_subprocess end |
#run_on_changes(_paths) ⇒ Object
31 32 33 |
# File 'lib/guard/nanoc.rb', line 31 def run_on_changes(_paths) recompile_in_subprocess end |
#run_on_removals(_paths) ⇒ Object
35 36 37 |
# File 'lib/guard/nanoc.rb', line 35 def run_on_removals(_paths) recompile_in_subprocess end |
#start ⇒ Object
22 23 24 25 |
# File 'lib/guard/nanoc.rb', line 22 def start setup_listeners recompile_in_subprocess end |