packer-config 0.0.4 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +2 -0
- data/COPYRIGHT +10 -0
- data/Gemfile +0 -14
- data/README.md +20 -9
- data/RELEASENOTES.md +8 -0
- data/Rakefile +0 -14
- data/lib/packer-config.rb +1 -14
- data/lib/packer/builder.rb +5 -15
- data/lib/packer/builders/all.rb +2 -14
- data/lib/packer/builders/amazon.rb +0 -13
- data/lib/packer/builders/docker.rb +1 -14
- data/lib/packer/builders/null.rb +40 -0
- data/lib/packer/builders/virtualbox.rb +1 -14
- data/lib/packer/dataobject.rb +0 -14
- data/lib/packer/envvar.rb +1 -15
- data/lib/packer/macro.rb +1 -15
- data/lib/packer/postprocessor.rb +0 -13
- data/lib/packer/postprocessors/all.rb +1 -14
- data/lib/packer/postprocessors/docker.rb +1 -14
- data/lib/packer/postprocessors/vagrant.rb +1 -14
- data/lib/packer/provisioner.rb +24 -19
- data/lib/packer/provisioners/all.rb +7 -14
- data/lib/packer/provisioners/ansible.rb +55 -0
- data/lib/packer/provisioners/chef/client.rb +75 -0
- data/lib/packer/provisioners/chef/solo.rb +67 -0
- data/lib/packer/provisioners/file.rb +1 -14
- data/lib/packer/provisioners/puppet/masterless.rb +48 -0
- data/lib/packer/provisioners/puppet/server.rb +47 -0
- data/lib/packer/provisioners/salt.rb +39 -0
- data/lib/packer/provisioners/shell.rb +1 -14
- data/packer-config.gemspec +4 -17
- data/spec/integration/centos_vagrant_spec.rb +4 -4
- data/spec/packer/builder_spec.rb +1 -14
- data/spec/packer/builders/amazon_spec.rb +1 -14
- data/spec/packer/builders/docker_spec.rb +1 -14
- data/spec/packer/builders/null_spec.rb +25 -0
- data/spec/packer/builders/virtualbox_spec.rb +1 -14
- data/spec/packer/dataobject_spec.rb +0 -13
- data/spec/packer/envvar_spec.rb +1 -14
- data/spec/packer/macro_spec.rb +1 -14
- data/spec/packer/postprocessor_spec.rb +1 -14
- data/spec/packer/postprocessors/docker_import_spec.rb +1 -14
- data/spec/packer/postprocessors/docker_push_spec.rb +1 -14
- data/spec/packer/postprocessors/vagrant_spec.rb +1 -14
- data/spec/packer/provisioner_spec.rb +2 -15
- data/spec/packer/provisioners/ansible_spec.rb +48 -0
- data/spec/packer/provisioners/chef/client_spec.rb +66 -0
- data/spec/packer/provisioners/chef/solo_spec.rb +98 -0
- data/spec/packer/provisioners/file_spec.rb +1 -14
- data/spec/packer/provisioners/puppet/masterless_spec.rb +141 -0
- data/spec/packer/provisioners/puppet/server_spec.rb +137 -0
- data/spec/packer/provisioners/salt_spec.rb +114 -0
- data/spec/packer/provisioners/shell_spec.rb +1 -14
- data/spec/packer/runner_spec.rb +0 -13
- data/spec/packer_config_spec.rb +0 -13
- data/spec/spec_helper.rb +0 -13
- data/spec/unit_helper.rb +0 -13
- metadata +27 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53d3143e6e5d9d38f42ce4bfd9a3058342cb76d6
|
4
|
+
data.tar.gz: a1c1a866ef9269219854bd308982432db11fb402
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6335a14566099a7b0ba0c3f597c8746084d37de59bd97069350e3826aeb66fbc7e239aa65ed086bfa41bd13b1a27b58bd08c9ce19a498ee5d8aa3596024b412
|
7
|
+
data.tar.gz: d7b7723bd04c85d172a80eb11c108efffdba7eaad43bcc94418acc05c405ac9eb5e01228c474084206ef49c1d77f8db15b3252b74e8687bfce1fda3ced5e05dc
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/COPYRIGHT
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
Unless specified otherwise, all content copyright the respective contributors.
|
2
|
+
|
3
|
+
Including, but not limited to:
|
4
|
+
|
5
|
+
Ian Chesal
|
6
|
+
Fraser Cobb
|
7
|
+
|
8
|
+
For licensing information please see LICENSE. Copyright holders contributing to
|
9
|
+
this project agree to have their contributions licensed under the terms of the
|
10
|
+
LICENSE agreement.
|
data/Gemfile
CHANGED
@@ -1,17 +1,3 @@
|
|
1
|
-
# Copyright 2014 Ian Chesal
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
1
|
source 'https://rubygems.org'
|
16
2
|
|
17
3
|
gemspec
|
data/README.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# packer-config
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/packer-config.svg)](http://badge.fury.io/rb/packer-config)
|
4
|
+
|
5
|
+
[![Build Status](https://travis-ci.org/ianchesal/packer-config.svg?branch=master)](https://travis-ci.org/ianchesal/packer-config)
|
6
|
+
|
3
7
|
A Ruby model that lets you build [Packer](http://packer.io) configurations in Ruby.
|
4
8
|
|
5
9
|
Building the Packer JSON configurations in raw JSON can be quite an adventure.
|
@@ -25,6 +29,7 @@ The following [Packer builders](http://www.packer.io/docs/templates/builders.htm
|
|
25
29
|
* [amazon-instance](http://www.packer.io/docs/builders/amazon-instance.html)
|
26
30
|
* [docker](http://www.packer.io/docs/builders/docker.html)
|
27
31
|
* [virtualbox-iso](http://www.packer.io/docs/builders/virtualbox-iso.html)
|
32
|
+
* [null](https://www.packer.io/docs/builders/null.html)
|
28
33
|
|
29
34
|
### Provisioners
|
30
35
|
|
@@ -32,6 +37,12 @@ The following [Packer provisioners](http://www.packer.io/docs/templates/provisio
|
|
32
37
|
|
33
38
|
* [file](http://www.packer.io/docs/provisioners/file.html)
|
34
39
|
* [shell](http://www.packer.io/docs/provisioners/shell.html)
|
40
|
+
* [ansible](https://www.packer.io/docs/provisioners/ansible-local.html)
|
41
|
+
* [chef-client](https://www.packer.io/docs/provisioners/chef-client.html)
|
42
|
+
* [chef-solo](https://www.packer.io/docs/provisioners/chef-solo.html)
|
43
|
+
* [salt](https://www.packer.io/docs/provisioners/salt-masterless.html)
|
44
|
+
* [puppet server](https://www.packer.io/docs/provisioners/puppet-server.html)
|
45
|
+
* [puppet masterless](https://www.packer.io/docs/provisioners/puppet-masterless.html)
|
35
46
|
|
36
47
|
### Post-Processors
|
37
48
|
|
@@ -47,24 +58,24 @@ The following [Packer post-processors](http://www.packer.io/docs/templates/post-
|
|
47
58
|
|
48
59
|
This example is based on the integration test [spec/integration/centos_vagrant_spec.rb](spec/integration/centos_vagrant_spec.rb). It produces a Vagrant Basebox that's provisionable with [Chef](http://www.getchef.com/) and the packer config and provisioning is taken from the [Bento](https://github.com/opscode/bento) project from the OpsCode crew.
|
49
60
|
|
50
|
-
OS = 'centos-6.
|
61
|
+
OS = 'centos-6.6'
|
51
62
|
|
52
63
|
pconfig = Packer::Config.new "#{OS}-vagrant.json"
|
53
64
|
pconfig.description "#{OS} VirtualBox Vagrant"
|
54
|
-
pconfig.add_variable 'mirror', 'http://mirrors.
|
65
|
+
pconfig.add_variable 'mirror', 'http://mirrors.sonic.net/centos/'
|
55
66
|
pconfig.add_variable 'my_version', '0.0.1'
|
56
67
|
pconfig.add_variable 'chef_version', 'latest'
|
57
68
|
|
58
|
-
builder = pconfig.add_builder
|
69
|
+
builder = pconfig.add_builder Packer::Builder::VIRTUALBOX_ISO
|
59
70
|
builder.boot_command ["<tab> text ks=http://#{pconfig.macro.HTTPIP}:#{pconfig.macro.HTTPPort}/#{OS}-ks.cfg<enter><wait>"]
|
60
71
|
builder.boot_wait '10s'
|
61
72
|
builder.disk_size 40960
|
62
73
|
builder.guest_additions_path "VBoxGuestAdditions_#{pconfig.macro.Version}.iso"
|
63
74
|
builder.guest_os_type "RedHat_64"
|
64
75
|
builder.http_directory "scripts/kickstart"
|
65
|
-
builder.iso_checksum '
|
76
|
+
builder.iso_checksum '08be09fd7276822bd3468af8f96198279ffc41f0'
|
66
77
|
builder.iso_checksum_type 'sha1'
|
67
|
-
builder.iso_url "#{pconfig.variable 'mirror'}/6.
|
78
|
+
builder.iso_url "#{pconfig.variable 'mirror'}/6.6/isos/x86_64/CentOS-6.6-x86_64-bin-DVD1.iso"
|
68
79
|
builder.output_directory "#{OS}-x86_64-virtualbox"
|
69
80
|
builder.shutdown_command "echo 'vagrant'|sudo -S /sbin/halt -h -p"
|
70
81
|
builder.ssh_password "vagrant"
|
@@ -88,11 +99,11 @@ This example is based on the integration test [spec/integration/centos_vagrant_s
|
|
88
99
|
builder.virtualbox_version_file ".vbox_version"
|
89
100
|
builder.vm_name "packer-#{OS}-x86_64"
|
90
101
|
|
91
|
-
provisioner = pconfig.add_provisioner
|
102
|
+
provisioner = pconfig.add_provisioner Packer::Provisioner::FILE
|
92
103
|
provisioner.source 'scripts/hello.sh'
|
93
104
|
provisioner.destination '/home/vagrant/hello.sh'
|
94
105
|
|
95
|
-
provisioner = pconfig.add_provisioner
|
106
|
+
provisioner = pconfig.add_provisioner Packer::Provisioner::SHELL
|
96
107
|
provisioner.scripts [
|
97
108
|
'scripts/fix-slow-dns.sh',
|
98
109
|
'scripts/sshd.sh',
|
@@ -108,7 +119,7 @@ This example is based on the integration test [spec/integration/centos_vagrant_s
|
|
108
119
|
]
|
109
120
|
provisioner.execute_command "echo 'vagrant' | #{pconfig.macro.Vars} sudo -S -E bash '#{pconfig.macro.Path}'"
|
110
121
|
|
111
|
-
postprocessor = pconfig.add_postprocessor
|
122
|
+
postprocessor = pconfig.add_postprocessor Packer::PostProcessor::VAGRANT
|
112
123
|
postprocessor.output File.join('builds', pconfig.macro.Provider, "#{OS}-x86_64-#{pconfig.variable 'my_version'}.box")
|
113
124
|
|
114
125
|
pconfig.validate
|
@@ -130,4 +141,4 @@ Please see [TODO.md](TODO.md) for the short list of big things I thought worth w
|
|
130
141
|
|
131
142
|
## Contact Me
|
132
143
|
|
133
|
-
Questions or comments about `packer-config`? Hit me up at ian.chesal@gmail.com or ianc@squareup.com.
|
144
|
+
Questions or comments about `packer-config`? Hit me up at ian.chesal@gmail.com or ianc@squareup.com.
|
data/RELEASENOTES.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# packer-config Release Notes
|
2
2
|
|
3
|
+
## 1.0.0
|
4
|
+
* A 1.0.0 release because...why not? You're either working or you're not and this is working so let's drop the `0.x.x` pretense and tango.
|
5
|
+
* Thanks to [frasercobb](https://github.com/frasercobb) we have `puppet-server` and `puppet-masterless` provisioner interfaces
|
6
|
+
* There's also `ansible`, `chef-client`, `chef-solo` and `salt` provisioners for you to use now
|
7
|
+
* Added the `null` builder because it seemed handy to have
|
8
|
+
* Updated the example in the README (and the integration test) to CentOS 6.6
|
9
|
+
* Moved the legalese in to COPYRIGHT and got it out of the all of the individual files
|
10
|
+
|
3
11
|
## 0.0.4
|
4
12
|
|
5
13
|
* Added the ability to call `#build` with a quiet option. This option turns streaming to stdout off/on. With `quiet: false`, you will see the output of the Packer call on your screen while `#build` is executing it. This can be handy for view Packer status for long running Packer jobs.
|
data/Rakefile
CHANGED
@@ -1,18 +1,4 @@
|
|
1
1
|
# Encoding: utf-8
|
2
|
-
# Copyright 2014 Ian Chesal
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
2
|
require 'rubocop/rake_task'
|
17
3
|
require 'rspec/core/rake_task'
|
18
4
|
require 'fileutils'
|
data/lib/packer-config.rb
CHANGED
@@ -1,17 +1,4 @@
|
|
1
1
|
# Encoding: utf-8
|
2
|
-
# Copyright 2014 Ian Chesal
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
2
|
require 'json'
|
16
3
|
require 'packer/runner'
|
17
4
|
require 'packer/dataobject'
|
@@ -23,7 +10,7 @@ require 'packer/envvar'
|
|
23
10
|
|
24
11
|
module Packer
|
25
12
|
class Config < Packer::DataObject
|
26
|
-
VERSION = '0.0
|
13
|
+
VERSION = '1.0.0'
|
27
14
|
|
28
15
|
attr_accessor :builders
|
29
16
|
attr_accessor :postprocessors
|
data/lib/packer/builder.rb
CHANGED
@@ -1,17 +1,4 @@
|
|
1
1
|
# Encoding: utf-8
|
2
|
-
# Copyright 2014 Ian Chesal
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
2
|
require 'packer/builders/all'
|
16
3
|
|
17
4
|
module Packer
|
@@ -20,12 +7,14 @@ module Packer
|
|
20
7
|
AMAZON_INSTANCE = 'amazon-instance'
|
21
8
|
DOCKER = 'docker'
|
22
9
|
VIRTUALBOX_ISO = 'virtualbox-iso'
|
10
|
+
NULL = 'null'
|
23
11
|
|
24
12
|
VALID_BUILDER_TYPES = [
|
25
13
|
AMAZON_EBS,
|
26
14
|
AMAZON_INSTANCE,
|
27
15
|
DOCKER,
|
28
|
-
VIRTUALBOX_ISO
|
16
|
+
VIRTUALBOX_ISO,
|
17
|
+
NULL
|
29
18
|
]
|
30
19
|
|
31
20
|
class UnrecognizedBuilderTypeError < StandardError
|
@@ -39,7 +28,8 @@ module Packer
|
|
39
28
|
AMAZON_EBS => Packer::Builder::Amazon::EBS,
|
40
29
|
AMAZON_INSTANCE => Packer::Builder::Amazon::Instance,
|
41
30
|
DOCKER => Packer::Builder::Docker,
|
42
|
-
VIRTUALBOX_ISO => Packer::Builder::VirtualBoxISO
|
31
|
+
VIRTUALBOX_ISO => Packer::Builder::VirtualBoxISO,
|
32
|
+
NULL => Packer::Builder::Null
|
43
33
|
}.fetch(type).new
|
44
34
|
end
|
45
35
|
|
data/lib/packer/builders/all.rb
CHANGED
@@ -1,17 +1,5 @@
|
|
1
1
|
# Encoding: utf-8
|
2
|
-
# Copyright 2014 Ian Chesal
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
2
|
require 'packer/builders/amazon'
|
16
3
|
require 'packer/builders/docker'
|
17
|
-
require 'packer/builders/virtualbox'
|
4
|
+
require 'packer/builders/virtualbox'
|
5
|
+
require 'packer/builders/null'
|
@@ -1,17 +1,4 @@
|
|
1
1
|
# Encoding: utf-8
|
2
|
-
# Copyright 2014 Ian Chesal
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
2
|
require 'packer/builder'
|
16
3
|
require 'packer/dataobject'
|
17
4
|
|
@@ -1,17 +1,4 @@
|
|
1
1
|
# Encoding: utf-8
|
2
|
-
# Copyright 2014 Ian Chesal
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
2
|
require 'packer/builder'
|
16
3
|
require 'packer/dataobject'
|
17
4
|
|
@@ -44,4 +31,4 @@ module Packer
|
|
44
31
|
end
|
45
32
|
end
|
46
33
|
end
|
47
|
-
end
|
34
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# Encoding: utf-8
|
2
|
+
require 'packer/builder'
|
3
|
+
require 'packer/dataobject'
|
4
|
+
|
5
|
+
module Packer
|
6
|
+
class Builder < Packer::DataObject
|
7
|
+
class Null < Builder
|
8
|
+
def initialize
|
9
|
+
super
|
10
|
+
self.data['type'] = NULL
|
11
|
+
self.add_required(
|
12
|
+
'host',
|
13
|
+
'ssh_password',
|
14
|
+
'ssh_private_key_file',
|
15
|
+
'ssh_username'
|
16
|
+
)
|
17
|
+
end
|
18
|
+
|
19
|
+
def host(name)
|
20
|
+
self.__add_string('host', name)
|
21
|
+
end
|
22
|
+
|
23
|
+
def ssh_password(passwd)
|
24
|
+
self.__add_string('ssh_password', passwd)
|
25
|
+
end
|
26
|
+
|
27
|
+
def ssh_private_key_file(filename)
|
28
|
+
self.__add_string('ssh_private_key_file', filename)
|
29
|
+
end
|
30
|
+
|
31
|
+
def ssh_username(name)
|
32
|
+
self.__add_string('ssh_username', name)
|
33
|
+
end
|
34
|
+
|
35
|
+
def port(number)
|
36
|
+
self.__add_integer('port', number)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -1,17 +1,4 @@
|
|
1
1
|
# Encoding: utf-8
|
2
|
-
# Copyright 2014 Ian Chesal
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
2
|
require 'packer/builder'
|
16
3
|
require 'packer/dataobject'
|
17
4
|
|
@@ -166,4 +153,4 @@ module Packer
|
|
166
153
|
end
|
167
154
|
end
|
168
155
|
end
|
169
|
-
end
|
156
|
+
end
|
data/lib/packer/dataobject.rb
CHANGED
@@ -1,18 +1,4 @@
|
|
1
1
|
# Encoding: utf-8
|
2
|
-
# Copyright 2014 Ian Chesal
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
2
|
module Packer
|
17
3
|
class DataObject
|
18
4
|
attr_accessor :data
|
data/lib/packer/envvar.rb
CHANGED
@@ -1,18 +1,4 @@
|
|
1
1
|
# Encoding: utf-8
|
2
|
-
# Copyright 2014 Ian Chesal
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
2
|
module Packer
|
17
3
|
class EnvVar
|
18
4
|
def method_missing(method_name, *args)
|
@@ -24,4 +10,4 @@ module Packer
|
|
24
10
|
true
|
25
11
|
end
|
26
12
|
end
|
27
|
-
end
|
13
|
+
end
|
data/lib/packer/macro.rb
CHANGED
@@ -1,18 +1,4 @@
|
|
1
1
|
# Encoding: utf-8
|
2
|
-
# Copyright 2014 Ian Chesal
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
2
|
module Packer
|
17
3
|
class Macro
|
18
4
|
def method_missing(method_name, *args)
|
@@ -25,4 +11,4 @@ module Packer
|
|
25
11
|
true
|
26
12
|
end
|
27
13
|
end
|
28
|
-
end
|
14
|
+
end
|