racker 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,10 @@
1
+ ## 0.1.4 (2014-08-07)
2
+
3
+ New Features:
4
+ * Added support for OpenStack `security_groups` options.
5
+ * Added `null` builder support.
6
+ * Added `parallels` builder support. (UNTESTED)
7
+
1
8
  ## 0.1.3 (2014-05-06)
2
9
 
3
10
  * Added support for VirtualBox `export_opts` and `vboxmanage_post` options which were added in Packer 0.6.0.
@@ -0,0 +1,27 @@
1
+ # encoding: utf-8
2
+ require 'racker/builders/builder'
3
+
4
+ module Racker
5
+ module Builders
6
+ # This is the Null builder
7
+ class Null < Racker::Builders::Builder
8
+ def to_packer(name, config)
9
+ log = Log4r::Logger['racker']
10
+ log.debug("Entering #{self.class}.#{__method__}")
11
+ config = super(name, config)
12
+
13
+ # There are no special cases at this point
14
+
15
+ # %w().each do |key|
16
+ # if config.key? key
17
+ # log.info("Converting #{key} to packer value...")
18
+ # config[key] = convert_hash_to_packer_value(config[key])
19
+ # end
20
+ # end
21
+
22
+ log.debug("Leaving #{self.class}.#{__method__}")
23
+ config
24
+ end
25
+ end
26
+ end
27
+ end
@@ -10,14 +10,12 @@ module Racker
10
10
  log.debug("Entering #{self.class}.#{__method__}")
11
11
  config = super(name, config)
12
12
 
13
- # There are no special cases at this point
14
-
15
- # %w().each do |key|
16
- # if config.key? key
17
- # log.info("Converting #{key} to packer value...")
18
- # config[key] = convert_hash_to_packer_value(config[key])
19
- # end
20
- # end
13
+ %w(security_groups).each do |key|
14
+ if config.key? key
15
+ log.info("Converting #{key} to packer value...")
16
+ config[key] = convert_hash_to_packer_value(config[key])
17
+ end
18
+ end
21
19
 
22
20
  log.debug("Leaving #{self.class}.#{__method__}")
23
21
  config
@@ -0,0 +1,25 @@
1
+ # encoding: utf-8
2
+ require 'racker/builders/builder'
3
+
4
+ module Racker
5
+ module Builders
6
+ # This is the Parallels builder
7
+ class Parallels < Racker::Builders::Builder
8
+ def to_packer(name, config)
9
+ log = Log4r::Logger['racker']
10
+ log.debug("Entering #{self.class}.#{__method__}")
11
+ config = super(name, config)
12
+
13
+ %w(boot_command floppy_files host_interfaces iso_urls prlctl).each do |key|
14
+ if config.key? key
15
+ log.info("Converting #{key} to packer value...")
16
+ config[key] = convert_hash_to_packer_value(config[key])
17
+ end
18
+ end
19
+
20
+ log.debug("Leaving #{self.class}.#{__method__}")
21
+ config
22
+ end
23
+ end
24
+ end
25
+ end
@@ -68,8 +68,12 @@ module Racker
68
68
  Racker::Builders::Docker.new
69
69
  when /googlecompute/
70
70
  Racker::Builders::Google.new
71
+ when /null/
72
+ Racker::Builders::Null.new
71
73
  when /openstack/
72
74
  Racker::Builders::OpenStack.new
75
+ when /parallels/
76
+ Racker::Builders::Parallels.new
73
77
  when /qemu/
74
78
  Racker::Builders::QEMU.new
75
79
  when /virtualbox/
@@ -5,7 +5,7 @@ module Racker
5
5
  module Version
6
6
  MAJOR = 0
7
7
  MINOR = 1
8
- PATCH = 3
8
+ PATCH = 4
9
9
  BUILD = nil
10
10
 
11
11
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: racker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-07 00:00:00.000000000 Z
12
+ date: 2014-08-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -280,7 +280,9 @@ files:
280
280
  - lib/racker/builders/digitalocean.rb
281
281
  - lib/racker/builders/docker.rb
282
282
  - lib/racker/builders/google.rb
283
+ - lib/racker/builders/null.rb
283
284
  - lib/racker/builders/openstack.rb
285
+ - lib/racker/builders/parallels.rb
284
286
  - lib/racker/builders/qemu.rb
285
287
  - lib/racker/builders/virtualbox.rb
286
288
  - lib/racker/builders/vmware.rb
@@ -319,7 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
319
321
  version: '0'
320
322
  segments:
321
323
  - 0
322
- hash: 3879783234475897504
324
+ hash: -3413953497687925388
323
325
  requirements: []
324
326
  rubyforge_project:
325
327
  rubygems_version: 1.8.23.2