boxgrinder-build 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,7 @@
22
22
 
23
23
  require 'rubygems'
24
24
 
25
- gem 'boxgrinder-core', '>= 0.0.2'
25
+ gem 'boxgrinder-core', '>= 0.0.3'
26
26
  gem 'aws-s3', '>= 0.6.2'
27
27
  gem 'amazon-ec2', '>= 0.9.6'
28
28
  gem 'net-sftp', '>= 2.0.4'
@@ -30,13 +30,7 @@ gem 'net-ssh', '>= 2.0.20'
30
30
  gem 'rake', '>= 0.8.7'
31
31
 
32
32
  require 'boxgrinder-build/helpers/rake-helper'
33
-
34
- begin
35
- require 'rake'
36
- rescue LoadError
37
- require 'rubygems'
38
- require 'rake'
39
- end
33
+ require 'rake'
40
34
 
41
35
  task :default do
42
36
  puts "Run '#{Rake.application.name} -T' to get list of all available commands."
@@ -126,10 +126,10 @@ module BoxGrinder
126
126
  repo_file = File.read( "#{@config.dir.base}/src/base.repo").gsub( /#NAME#/, repo['name'] )
127
127
 
128
128
  ['baseurl', 'mirrorlist'].each do |type|
129
- repo_file << ("#{type}=#{repo[type]}") unless repo[type].nil?
129
+ repo_file << ("#{type}=#{repo[type]}\n") unless repo[type].nil?
130
130
  end
131
131
 
132
- guestfs.sh("echo '#{repo_file}' > /etc/yum.repos.d/#{repo['name']}.repo")
132
+ guestfs.sh("echo -e '#{repo_file}' > /etc/yum.repos.d/#{repo['name']}.repo")
133
133
  end
134
134
  @log.debug "Repositories installed."
135
135
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - BoxGrinder Project