Class: Util::Gulp

Inherits:
Object
  • Object
show all
Defined in:
lib/utilities/gulp.rb

Overview

A.1. GIT COMMANDS ———————————————————————————————–

Instance Method Summary collapse

Instance Method Details

#default(path, serving) ⇒ Object

A.1.1. GULP DEFAULT



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/utilities/gulp.rb', line 19

def default(path, serving)
    
    gulp = Util::Gulp.new()
    msg = Util::Message.new()
    
    gulp_path = File.expand_path('~/.konstruct/gulp')
    
    FileUtils.cd(gulp_path) do
        
        if serving == true
            
            exec "gulp --path #{path}"
            
        else 
           
            msg.heading("Run `$ jekyll serve --watch` in a new terminal window.")
            
            exec "gulp --noserve --path #{path}"
            
        end

    end
    
end