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 CHANGED
@@ -1,6 +1,12 @@
1
1
  Changelog
2
2
  =============
3
3
 
4
+ 0.8.2
5
+ ------------
6
+
7
+ - cjdroute recipe fixes
8
+
9
+
4
10
  0.8.1
5
11
  ------------
6
12
 
@@ -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 build directory'
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
@@ -1,3 +1,3 @@
1
1
  module Dust
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 8
8
- - 1
9
- version: 0.8.1
8
+ - 2
9
+ version: 0.8.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - kris kechagia