lib/guard/steering.rb
# Call once when Guard starts. Please override initialize method to init stuff.
# @raise [:task_has_failed] when start has failed
Call once when Guard starts. Please override initialize method to init stuff.
Call once when Guard starts . Please override initialize method to init stuff .
def start
      unless @options[:output_folder].nil?
        FileUtils.mkpath(@options[:output_folder]) unless File.directory?(@options[:output_folder])
      end
      UI.info("Guard::Steering has started watching your files with output folder set to '#{@output_folder}' (in case of 'nil' templates will be compiled to the folder where they are)") unless @options[:quiet]
      run_all if @options[:run_at_start]
    end
def start unless @options [ :output_folder ] . nil? FileUtils . mkpath ( @options [ :output_folder ] ) unless File . directory? ( @options [ :output_folder ] ) end UI . info ( "Guard::Steering has started watching your files with output folder set to '#{@output_folder}' (in case of 'nil' templates will be compiled to the folder where they are)" ) unless @options [ :quiet ] run_all if @options [ :run_at_start ] end
Call once when Guard starts.
Call once when Guard starts .
# create output folder (recursively) if it doesn't exist yet, but only if it's actually defined
[:task_has_failed] when start has failed
[ : task_has_failed ] when start has failed