5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# File 'lib/kstrano_web.rb', line 5
def self.load_into(configuration)
configuration.load do
load_paths.push File.expand_path('../', __FILE__)
load 'kstrano'
set :bundler_install, false
set :npm_install, true
set :bower_install, true
set :grunt_build, true
set :gulp_build, false
set :group_writable, false
before "kuma::share_childs" do
kuma.share_childs
end
after "deploy:finalize_update" do
if bundler_install
frontend.bundler.install
end
if bower_install
frontend.bower.install
end
if npm_install
frontend.npm.install
end
if grunt_build
frontend.grunt.build
end
if gulp_build
frontend.gulp.build
end
end
end
end
|