dust-deploy 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- data/changelog.md +6 -0
- data/lib/dust/recipes/cjdroute.rb +9 -2
- data/lib/dust/version.rb +1 -1
- metadata +2 -2
data/changelog.md
CHANGED
@@ -8,11 +8,11 @@ class Cjdroute< Recipe
|
|
8
8
|
|
9
9
|
return unless install_dependencies
|
10
10
|
return unless get_latest_version
|
11
|
-
return unless @node.mkdir "#{@config['build_dir']}/build"
|
12
11
|
|
13
12
|
# clean up building directory, if --restart is given
|
14
13
|
# using --restart, since there's no --cleanup
|
15
14
|
return unless make_clean if @options.restart?
|
15
|
+
return unless @node.mkdir "#{@config['build_dir']}/build"
|
16
16
|
|
17
17
|
# compiling action
|
18
18
|
return unless run_cmake
|
@@ -98,12 +98,19 @@ class Cjdroute< Recipe
|
|
98
98
|
|
99
99
|
return false unless @node.install_package 'cmake', :indent => 2
|
100
100
|
|
101
|
+
# check cmake version
|
102
|
+
ret = @node.exec 'cmake --version'
|
103
|
+
ver = ret[:stdout].match(/2.[0-9]/)[0].to_f
|
104
|
+
return ::Dust.print_failed 'cjdroute requires cmake 2.8 or higher' if ver < 2.8
|
105
|
+
|
106
|
+
|
101
107
|
if @node.uses_apt?
|
102
108
|
return false unless @node.install_package 'git-core', :indent => 2
|
103
109
|
return false unless @node.install_package 'build-essential', :indent => 2
|
104
110
|
return false unless @node.install_package 'coreutils', :indent => 2
|
105
111
|
elsif @node.uses_rpm?
|
106
112
|
return false unless @node.install_package 'git', :indent => 2
|
113
|
+
return false unless @node.install_package 'gcc', :indent => 2
|
107
114
|
return false unless @node.install_package 'make', :indent => 2
|
108
115
|
else
|
109
116
|
return ::Dust.print_failed 'sorry, your os is not supported by this script'
|
@@ -145,7 +152,7 @@ class Cjdroute< Recipe
|
|
145
152
|
|
146
153
|
# remove and recreate building directory
|
147
154
|
def make_clean
|
148
|
-
::Dust.print_msg 'cleaning
|
155
|
+
::Dust.print_msg 'cleaning up'
|
149
156
|
return false unless ::Dust.print_result @node.exec("rm -rf #{@config['build_dir']}/build")[:exit_code]
|
150
157
|
true
|
151
158
|
end
|
data/lib/dust/version.rb
CHANGED