pi_build_modifier 0.3.0.pre.alpha → 0.3.1.pre.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +24 -12
- data/.travis.yml +26 -4
- data/CODE_OF_CONDUCT.md +74 -0
- data/LICENSE +21 -0
- data/README.md +208 -2
- data/Rakefile +134 -6
- data/Vagrantfile +27 -0
- data/docs/concept.md +27 -0
- data/docs/incubation.md +38 -0
- data/pi_build_modifier/.gitignore +12 -0
- data/{.rspec → pi_build_modifier/.rspec} +0 -0
- data/{Gemfile → pi_build_modifier/Gemfile} +0 -0
- data/{LICENSE.txt → pi_build_modifier/LICENSE.txt} +1 -1
- data/pi_build_modifier/README.md +3 -0
- data/pi_build_modifier/Rakefile +13 -0
- data/{bin → pi_build_modifier/bin}/pi_build_modifier +1 -1
- data/{lib → pi_build_modifier/lib}/pi_build_modifier/boot-files/boot.rb +1 -1
- data/{lib → pi_build_modifier/lib}/pi_build_modifier/boot-files/templates/07-resize-init.diff.erb +0 -0
- data/{lib → pi_build_modifier/lib}/pi_build_modifier/config/logex.rb +1 -1
- data/{lib → pi_build_modifier/lib}/pi_build_modifier/locale/locale_debconf.rb +1 -1
- data/{lib → pi_build_modifier/lib}/pi_build_modifier/locale/templates/00-debconf.erb +1 -1
- data/{lib → pi_build_modifier/lib}/pi_build_modifier/modifier/erb_mapper.rb +1 -1
- data/{lib → pi_build_modifier/lib}/pi_build_modifier/modifier/mapper.rb +1 -1
- data/{lib → pi_build_modifier/lib}/pi_build_modifier/modifier/pi_modifier.rb +1 -1
- data/{lib → pi_build_modifier/lib}/pi_build_modifier/modifier_task.rb +10 -3
- data/{lib → pi_build_modifier/lib}/pi_build_modifier/net-tweaks/templates/wpa_supplicant.conf.erb +0 -0
- data/{lib → pi_build_modifier/lib}/pi_build_modifier/net-tweaks/wifi_network.rb +1 -1
- data/{lib → pi_build_modifier/lib}/pi_build_modifier/sys_tweaks/run_modifier.rb +1 -1
- data/{lib → pi_build_modifier/lib}/pi_build_modifier/sys_tweaks/ssh.rb +1 -1
- data/{lib → pi_build_modifier/lib}/pi_build_modifier/sys_tweaks/templates/ssh.sh.erb +0 -0
- data/{lib → pi_build_modifier/lib}/pi_build_modifier/system/system_type.rb +1 -1
- data/{lib → pi_build_modifier/lib}/pi_build_modifier/version.rb +2 -2
- data/{lib → pi_build_modifier/lib}/pi_build_modifier.rb +4 -1
- data/{pi_build_modifier.gemspec → pi_build_modifier/pi_build_modifier.gemspec} +7 -7
- data/pi_build_modifier/spec/fixtures/config.json +26 -0
- data/pi_build_modifier/spec/pi_build_modifier/boot/boot_spec.rb +103 -0
- data/pi_build_modifier/spec/pi_build_modifier/locale/locale_spec.rb +87 -0
- data/pi_build_modifier/spec/pi_build_modifier/modifier/mapper_spec.rb +105 -0
- data/pi_build_modifier/spec/pi_build_modifier/modifier/modifier_spec.rb +83 -0
- data/pi_build_modifier/spec/pi_build_modifier/modifier_task_spec.rb +63 -0
- data/pi_build_modifier/spec/pi_build_modifier/net-tweaks/wifi_network_spec.rb +91 -0
- data/pi_build_modifier/spec/pi_build_modifier/sys_tweaks/run_modifier_spec.rb +74 -0
- data/pi_build_modifier/spec/pi_build_modifier/sys_tweaks/ssh_spec.rb +73 -0
- data/pi_build_modifier/spec/pi_build_modifier/system/system_spec.rb +66 -0
- data/pi_build_modifier/spec/pi_build_modifier_spec.rb +73 -0
- data/pi_build_modifier/spec/spec_helper.rb +10 -0
- data/pi_customizer/.rspec +2 -0
- data/pi_customizer/Gemfile +3 -0
- data/pi_customizer/LICENSE +21 -0
- data/pi_customizer/README.md +3 -0
- data/pi_customizer/Rakefile +13 -0
- data/pi_customizer/Vagrantfile +16 -0
- data/pi_customizer/bin/pi_customizer +25 -0
- data/pi_customizer/envs/aws/outputs.tf +3 -0
- data/pi_customizer/envs/aws/pi-build-env.tf +160 -0
- data/pi_customizer/envs/aws/variables.tf +55 -0
- data/pi_customizer/envs/docker/Dockerfile +6 -0
- data/pi_customizer/envs/sh/build-pi-img.sh +28 -0
- data/pi_customizer/lib/pi_customizer/build/builder/build_executor.rb +149 -0
- data/pi_customizer/lib/pi_customizer/build/builder/builder.rb +59 -0
- data/pi_customizer/lib/pi_customizer/build/builder/prepare_start_execute_builder.rb +43 -0
- data/pi_customizer/lib/pi_customizer/build/builder/start_prepare_execute_builder.rb +43 -0
- data/pi_customizer/lib/pi_customizer/build/environment/aws/aws.rb +76 -0
- data/pi_customizer/lib/pi_customizer/build/environment/docker/docker.rb +94 -0
- data/pi_customizer/lib/pi_customizer/build/environment/environment.rb +73 -0
- data/pi_customizer/lib/pi_customizer/build/environment/environment_builder_factory.rb +81 -0
- data/pi_customizer/lib/pi_customizer/build/environment/vagrant/templates/Vagrantfile.erb +61 -0
- data/pi_customizer/lib/pi_customizer/build/environment/vagrant/vagrant.rb +77 -0
- data/pi_customizer/lib/pi_customizer/build/environment/vagrant/vagrant_file.rb +95 -0
- data/pi_customizer/lib/pi_customizer/build/workspace/local_workspace.rb +92 -0
- data/pi_customizer/lib/pi_customizer/build/workspace/remote_workspace.rb +79 -0
- data/pi_customizer/lib/pi_customizer/utils/logex.rb +25 -0
- data/pi_customizer/lib/pi_customizer/version.rb +27 -0
- data/pi_customizer/lib/pi_customizer/write/image_writer.rb +67 -0
- data/pi_customizer/lib/pi_customizer.rb +84 -0
- data/pi_customizer/pi_customizer.gemspec +30 -0
- data/pi_customizer/spec/fixtures/TestVagrantfile +61 -0
- data/pi_customizer/spec/fixtures/image.img +1 -0
- data/pi_customizer/spec/fixtures/image.zip +0 -0
- data/pi_customizer/spec/pi_customizer/builder/build_executor_spec.rb +64 -0
- data/pi_customizer/spec/pi_customizer/environment/aws_spec.rb +57 -0
- data/pi_customizer/spec/pi_customizer/environment/environment_builder_factory_spec.rb +48 -0
- data/pi_customizer/spec/pi_customizer/environment/environment_spec.rb +75 -0
- data/pi_customizer/spec/pi_customizer/environment/vagrant/vagrant_file_spec.rb +63 -0
- data/pi_customizer/spec/pi_customizer/environment/vagrant/vagrant_spec.rb +41 -0
- data/pi_customizer/spec/pi_customizer/version_spec.rb +29 -0
- data/pi_customizer/spec/pi_customizer/workspace/local_workspace_spec.rb +74 -0
- data/pi_customizer/spec/pi_customizer/workspace/remote_workspace_spec.rb +51 -0
- data/pi_customizer/spec/pi_customizer/write/image_writer_spec.rb +59 -0
- data/pi_customizer/spec/pi_customizer_spec.rb +93 -0
- data/pi_customizer/spec/spec_helper.rb +10 -0
- data/version.rb +21 -0
- metadata +106 -41
@@ -0,0 +1,51 @@
|
|
1
|
+
# Copyright (c) 2017-2019 Beate Ottenwälder
|
2
|
+
#
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
# of this software and associated documentation files (the "Software"), to deal
|
5
|
+
# in the Software without restriction, including without limitation the rights
|
6
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
# copies of the Software, and to permit persons to whom the Software is
|
8
|
+
# furnished to do so, subject to the following conditions:
|
9
|
+
#
|
10
|
+
# The above copyright notice and this permission notice shall be included in all
|
11
|
+
# copies or substantial portions of the Software.
|
12
|
+
#
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
+
# SOFTWARE.
|
20
|
+
|
21
|
+
require_relative '../../spec_helper'
|
22
|
+
require 'fileutils'
|
23
|
+
require 'pathname'
|
24
|
+
require 'pi_customizer/build/workspace/remote_workspace'
|
25
|
+
|
26
|
+
|
27
|
+
RSpec.describe PiCustomizer::Workspace::RemoteWorkspace do
|
28
|
+
|
29
|
+
let(:git_path) {'../pi-gen-test'}
|
30
|
+
let(:default_git) {'https://github.com/ottenwbe/pi_customizer.git'}
|
31
|
+
|
32
|
+
it 'allows us to check for parameter equality' do
|
33
|
+
remote_workspace_1 = PiCustomizer::Workspace::RemoteWorkspace.new('a', 'b', 'd')
|
34
|
+
remote_workspace_2 = PiCustomizer::Workspace::RemoteWorkspace.new('a', 'b', 'd')
|
35
|
+
expect(remote_workspace_1==remote_workspace_2).to be true
|
36
|
+
end
|
37
|
+
|
38
|
+
it 'allows us to check for parameter inequality' do
|
39
|
+
remote_workspace_1 = PiCustomizer::Workspace::RemoteWorkspace.new('a', 'b')
|
40
|
+
remote_workspace_2 = PiCustomizer::Workspace::RemoteWorkspace.new('c', 'd')
|
41
|
+
expect(remote_workspace_1==remote_workspace_2).to be false
|
42
|
+
end
|
43
|
+
|
44
|
+
it 'initializes with known default values' do
|
45
|
+
remote_workspace = PiCustomizer::Workspace::RemoteWorkspace.new()
|
46
|
+
expect(remote_workspace.workspace_directory).to eq PiCustomizer::Workspace::DEFAULT_REMOTE_WORKSPACE_DIRECTORY
|
47
|
+
expect(remote_workspace.git_path).to eq PiCustomizer::Workspace::DEFAULT_GIT_PATH
|
48
|
+
expect(remote_workspace.git_tag).to eq PiCustomizer::Workspace::DEFAULT_GIT_TAG
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# Copyright (c) 2017-2019 Beate Ottenwälder
|
2
|
+
#
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
# of this software and associated documentation files (the "Software"), to deal
|
5
|
+
# in the Software without restriction, including without limitation the rights
|
6
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
# copies of the Software, and to permit persons to whom the Software is
|
8
|
+
# furnished to do so, subject to the following conditions:
|
9
|
+
#
|
10
|
+
# The above copyright notice and this permission notice shall be included in all
|
11
|
+
# copies or substantial portions of the Software.
|
12
|
+
#
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
+
# SOFTWARE.
|
20
|
+
|
21
|
+
require_relative '../../spec_helper'
|
22
|
+
require 'pi_customizer/write/image_writer'
|
23
|
+
require 'pi_customizer/utils/logex'
|
24
|
+
|
25
|
+
|
26
|
+
describe PiCustomizer::ImageWriter do
|
27
|
+
|
28
|
+
let(:zip_img_file) {File.dirname(__FILE__) + '/../../fixtures/image.zip'}
|
29
|
+
let(:img_file) {File.dirname(__FILE__) + '/../../fixtures/image.img'}
|
30
|
+
let(:tmp_folder) {File.dirname(__FILE__) + '/tmp'}
|
31
|
+
|
32
|
+
before do
|
33
|
+
FileUtils.mkdir_p tmp_folder
|
34
|
+
end
|
35
|
+
|
36
|
+
after do
|
37
|
+
FileUtils.rm_rf(tmp_folder)
|
38
|
+
end
|
39
|
+
|
40
|
+
it 'raises an error when the format is not correct' do
|
41
|
+
allow(PiCustomizer::ImageWriter).to receive(:dispatch_write)
|
42
|
+
expect {PiCustomizer::ImageWriter.new().write('test.txt', '/dev/null')}.to raise_error
|
43
|
+
end
|
44
|
+
|
45
|
+
it 'uses dd to write an image to a device' do
|
46
|
+
#When
|
47
|
+
PiCustomizer::ImageWriter.new().write(img_file, tmp_folder + '/img.img')
|
48
|
+
#Then
|
49
|
+
expect(Pathname.new(tmp_folder + '/img.img')).to be_file
|
50
|
+
end
|
51
|
+
|
52
|
+
it 'uses dd to write a zipped image to a device' do
|
53
|
+
#When
|
54
|
+
PiCustomizer::ImageWriter.new().write(zip_img_file, tmp_folder + '/zip.img')
|
55
|
+
#Then
|
56
|
+
expect(Pathname.new(tmp_folder + '/zip.img')).to be_file
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
# Copyright (c) 2017-2019 Beate Ottenwälder
|
2
|
+
#
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
# of this software and associated documentation files (the "Software"), to deal
|
5
|
+
# in the Software without restriction, including without limitation the rights
|
6
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
# copies of the Software, and to permit persons to whom the Software is
|
8
|
+
# furnished to do so, subject to the following conditions:
|
9
|
+
#
|
10
|
+
# The above copyright notice and this permission notice shall be included in all
|
11
|
+
# copies or substantial portions of the Software.
|
12
|
+
#
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
+
# SOFTWARE.
|
20
|
+
|
21
|
+
require_relative 'spec_helper'
|
22
|
+
require 'fileutils'
|
23
|
+
require 'rspec'
|
24
|
+
require 'pi_customizer'
|
25
|
+
require 'pi_customizer/utils/logex'
|
26
|
+
require 'pi_customizer/version'
|
27
|
+
require 'pi_customizer/build/workspace/local_workspace'
|
28
|
+
require 'pi_customizer/utils/logex'
|
29
|
+
|
30
|
+
|
31
|
+
describe PiCustomizer::PiCustomizer do
|
32
|
+
|
33
|
+
context 'build' do
|
34
|
+
it 'starts a build when the command line parameter \'build\' is passed' do
|
35
|
+
expect(PiCustomizer::Environment).to receive(:builder_factory).with(anything(), anything(), anything(), anything())
|
36
|
+
PiCustomizer::PiCustomizer.start(%w(build ECHO -c tst))
|
37
|
+
end
|
38
|
+
it 'reads the modifier_gem_path parameter' do
|
39
|
+
expect(PiCustomizer::Environment).to receive(:builder_factory).with(anything(), PiCustomizer::Workspace::LocalWorkspace.new('cfg', '', 'mod'), anything(), anything())
|
40
|
+
PiCustomizer::PiCustomizer.start(%w(build ECHO --modifier_gem=mod --config_file=cfg))
|
41
|
+
end
|
42
|
+
it 'reads the local_workspace_dir parameter' do
|
43
|
+
expect(PiCustomizer::Environment).to receive(:builder_factory).with(anything(), PiCustomizer::Workspace::LocalWorkspace.new('cfg', 'tmp', ''), anything(), anything())
|
44
|
+
PiCustomizer::PiCustomizer.start(%w(build ECHO --local_workspace_dir=tmp --config_file=cfg))
|
45
|
+
end
|
46
|
+
it 'reads the config_path parameter' do
|
47
|
+
expect(PiCustomizer::Environment).to receive(:builder_factory).with(anything(), PiCustomizer::Workspace::LocalWorkspace.new('cfg', '', ''), anything(), anything())
|
48
|
+
PiCustomizer::PiCustomizer.start(%w(build ECHO --config_file=cfg))
|
49
|
+
end
|
50
|
+
it 'reads the remote_workspace_dir parameter' do
|
51
|
+
expect(PiCustomizer::Environment).to receive(:builder_factory).with(anything(), anything(), PiCustomizer::Workspace::RemoteWorkspace.new('rdir', ''), anything())
|
52
|
+
PiCustomizer::PiCustomizer.start(%w(build ECHO --remote_workspace_dir=rdir -c tst))
|
53
|
+
end
|
54
|
+
it 'reads the build_sources_git_url parameter' do
|
55
|
+
expect(PiCustomizer::Environment).to receive(:builder_factory).with(anything(), anything(), PiCustomizer::Workspace::RemoteWorkspace.new('', 'git'), anything())
|
56
|
+
PiCustomizer::PiCustomizer.start(%w(build ECHO --build_sources_git_url=git -c tst))
|
57
|
+
end
|
58
|
+
it 'logs unexpected errors' do
|
59
|
+
expect($logger).to receive(:error).with(anything())
|
60
|
+
allow(PiCustomizer::Environment).to receive(:builder_factory).and_throw('test throw')
|
61
|
+
PiCustomizer::PiCustomizer.start(%w(build NONE -c "tst"))
|
62
|
+
end
|
63
|
+
it 'does not start if no config is provided' do
|
64
|
+
expect(STDERR).to receive(:puts).with(anything())
|
65
|
+
PiCustomizer::PiCustomizer.start(%w(build ECHO))
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
context 'v' do
|
70
|
+
it 'returns the app\'s version' do
|
71
|
+
expect(STDOUT).to receive(:puts).with(PiCustomizer::VERSION)
|
72
|
+
PiCustomizer::PiCustomizer.start(%w(v))
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
context 'version' do
|
77
|
+
it 'returns the app\'s version' do
|
78
|
+
expect(STDOUT).to receive(:puts).with(PiCustomizer::VERSION)
|
79
|
+
PiCustomizer::PiCustomizer.start(%w(version))
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
context 'write' do
|
84
|
+
it 'triggers the write of a given image to a given device' do
|
85
|
+
allow(PiCustomizer::ImageWriter).to receive(:dispatch_write)
|
86
|
+
expected_img = 'test.img'
|
87
|
+
expected_dev = '/dev/null'
|
88
|
+
expect_any_instance_of(PiCustomizer::ImageWriter).to receive(:write).with(expected_img, expected_dev)
|
89
|
+
PiCustomizer::PiCustomizer.start(['write', "#{expected_img}", "#{expected_dev}"])
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
end
|
data/version.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# Copyright (c) 2017-2019 Beate Ottenwälder
|
2
|
+
#
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
# of this software and associated documentation files (the "Software"), to deal
|
5
|
+
# in the Software without restriction, including without limitation the rights
|
6
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
# copies of the Software, and to permit persons to whom the Software is
|
8
|
+
# furnished to do so, subject to the following conditions:
|
9
|
+
#
|
10
|
+
# The above copyright notice and this permission notice shall be included in all
|
11
|
+
# copies or substantial portions of the Software.
|
12
|
+
#
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
+
# SOFTWARE.
|
20
|
+
|
21
|
+
VERSION = '0.4.0.pre.alpha'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pi_build_modifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1.pre.alpha
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Beate Ottenwälder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,70 +16,70 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '12.3'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '12.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '3.
|
47
|
+
version: '3.8'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '3.
|
54
|
+
version: '3.8'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: simplecov
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
61
|
+
version: '0.16'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
68
|
+
version: '0.16'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rdoc
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '6.1'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '6.1'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: thor
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,61 +100,126 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '2.
|
103
|
+
version: '2.2'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '2.
|
110
|
+
version: '2.2'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: openssl
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '2.
|
117
|
+
version: '2.1'
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '2.
|
124
|
+
version: '2.1'
|
125
125
|
description: Modifies the build process of a Raspbian image.
|
126
126
|
email: ottenwbe.public@gmail.com
|
127
|
-
executables:
|
128
|
-
- pi_build_modifier
|
127
|
+
executables: []
|
129
128
|
extensions: []
|
130
129
|
extra_rdoc_files: []
|
131
130
|
files:
|
132
131
|
- ".gitignore"
|
133
|
-
- ".rspec"
|
134
132
|
- ".travis.yml"
|
135
|
-
-
|
136
|
-
- LICENSE
|
133
|
+
- CODE_OF_CONDUCT.md
|
134
|
+
- LICENSE
|
137
135
|
- README.md
|
138
136
|
- Rakefile
|
139
|
-
-
|
140
|
-
-
|
141
|
-
-
|
142
|
-
-
|
143
|
-
-
|
144
|
-
-
|
145
|
-
-
|
146
|
-
-
|
147
|
-
-
|
148
|
-
-
|
149
|
-
- lib/pi_build_modifier
|
150
|
-
- lib/pi_build_modifier/
|
151
|
-
- lib/pi_build_modifier/
|
152
|
-
- lib/pi_build_modifier/
|
153
|
-
- lib/pi_build_modifier/
|
154
|
-
- lib/pi_build_modifier/
|
155
|
-
- lib/pi_build_modifier/
|
156
|
-
- lib/pi_build_modifier/
|
157
|
-
- pi_build_modifier.
|
137
|
+
- Vagrantfile
|
138
|
+
- docs/concept.md
|
139
|
+
- docs/incubation.md
|
140
|
+
- pi_build_modifier/.gitignore
|
141
|
+
- pi_build_modifier/.rspec
|
142
|
+
- pi_build_modifier/Gemfile
|
143
|
+
- pi_build_modifier/LICENSE.txt
|
144
|
+
- pi_build_modifier/README.md
|
145
|
+
- pi_build_modifier/Rakefile
|
146
|
+
- pi_build_modifier/bin/pi_build_modifier
|
147
|
+
- pi_build_modifier/lib/pi_build_modifier.rb
|
148
|
+
- pi_build_modifier/lib/pi_build_modifier/boot-files/boot.rb
|
149
|
+
- pi_build_modifier/lib/pi_build_modifier/boot-files/templates/07-resize-init.diff.erb
|
150
|
+
- pi_build_modifier/lib/pi_build_modifier/config/logex.rb
|
151
|
+
- pi_build_modifier/lib/pi_build_modifier/locale/locale_debconf.rb
|
152
|
+
- pi_build_modifier/lib/pi_build_modifier/locale/templates/00-debconf.erb
|
153
|
+
- pi_build_modifier/lib/pi_build_modifier/modifier/erb_mapper.rb
|
154
|
+
- pi_build_modifier/lib/pi_build_modifier/modifier/mapper.rb
|
155
|
+
- pi_build_modifier/lib/pi_build_modifier/modifier/pi_modifier.rb
|
156
|
+
- pi_build_modifier/lib/pi_build_modifier/modifier_task.rb
|
157
|
+
- pi_build_modifier/lib/pi_build_modifier/net-tweaks/templates/wpa_supplicant.conf.erb
|
158
|
+
- pi_build_modifier/lib/pi_build_modifier/net-tweaks/wifi_network.rb
|
159
|
+
- pi_build_modifier/lib/pi_build_modifier/sys_tweaks/run_modifier.rb
|
160
|
+
- pi_build_modifier/lib/pi_build_modifier/sys_tweaks/ssh.rb
|
161
|
+
- pi_build_modifier/lib/pi_build_modifier/sys_tweaks/templates/ssh.sh.erb
|
162
|
+
- pi_build_modifier/lib/pi_build_modifier/system/system_type.rb
|
163
|
+
- pi_build_modifier/lib/pi_build_modifier/version.rb
|
164
|
+
- pi_build_modifier/pi_build_modifier.gemspec
|
165
|
+
- pi_build_modifier/spec/fixtures/config.json
|
166
|
+
- pi_build_modifier/spec/pi_build_modifier/boot/boot_spec.rb
|
167
|
+
- pi_build_modifier/spec/pi_build_modifier/locale/locale_spec.rb
|
168
|
+
- pi_build_modifier/spec/pi_build_modifier/modifier/mapper_spec.rb
|
169
|
+
- pi_build_modifier/spec/pi_build_modifier/modifier/modifier_spec.rb
|
170
|
+
- pi_build_modifier/spec/pi_build_modifier/modifier_task_spec.rb
|
171
|
+
- pi_build_modifier/spec/pi_build_modifier/net-tweaks/wifi_network_spec.rb
|
172
|
+
- pi_build_modifier/spec/pi_build_modifier/sys_tweaks/run_modifier_spec.rb
|
173
|
+
- pi_build_modifier/spec/pi_build_modifier/sys_tweaks/ssh_spec.rb
|
174
|
+
- pi_build_modifier/spec/pi_build_modifier/system/system_spec.rb
|
175
|
+
- pi_build_modifier/spec/pi_build_modifier_spec.rb
|
176
|
+
- pi_build_modifier/spec/spec_helper.rb
|
177
|
+
- pi_customizer/.rspec
|
178
|
+
- pi_customizer/Gemfile
|
179
|
+
- pi_customizer/LICENSE
|
180
|
+
- pi_customizer/README.md
|
181
|
+
- pi_customizer/Rakefile
|
182
|
+
- pi_customizer/Vagrantfile
|
183
|
+
- pi_customizer/bin/pi_customizer
|
184
|
+
- pi_customizer/envs/aws/outputs.tf
|
185
|
+
- pi_customizer/envs/aws/pi-build-env.tf
|
186
|
+
- pi_customizer/envs/aws/variables.tf
|
187
|
+
- pi_customizer/envs/docker/Dockerfile
|
188
|
+
- pi_customizer/envs/sh/build-pi-img.sh
|
189
|
+
- pi_customizer/lib/pi_customizer.rb
|
190
|
+
- pi_customizer/lib/pi_customizer/build/builder/build_executor.rb
|
191
|
+
- pi_customizer/lib/pi_customizer/build/builder/builder.rb
|
192
|
+
- pi_customizer/lib/pi_customizer/build/builder/prepare_start_execute_builder.rb
|
193
|
+
- pi_customizer/lib/pi_customizer/build/builder/start_prepare_execute_builder.rb
|
194
|
+
- pi_customizer/lib/pi_customizer/build/environment/aws/aws.rb
|
195
|
+
- pi_customizer/lib/pi_customizer/build/environment/docker/docker.rb
|
196
|
+
- pi_customizer/lib/pi_customizer/build/environment/environment.rb
|
197
|
+
- pi_customizer/lib/pi_customizer/build/environment/environment_builder_factory.rb
|
198
|
+
- pi_customizer/lib/pi_customizer/build/environment/vagrant/templates/Vagrantfile.erb
|
199
|
+
- pi_customizer/lib/pi_customizer/build/environment/vagrant/vagrant.rb
|
200
|
+
- pi_customizer/lib/pi_customizer/build/environment/vagrant/vagrant_file.rb
|
201
|
+
- pi_customizer/lib/pi_customizer/build/workspace/local_workspace.rb
|
202
|
+
- pi_customizer/lib/pi_customizer/build/workspace/remote_workspace.rb
|
203
|
+
- pi_customizer/lib/pi_customizer/utils/logex.rb
|
204
|
+
- pi_customizer/lib/pi_customizer/version.rb
|
205
|
+
- pi_customizer/lib/pi_customizer/write/image_writer.rb
|
206
|
+
- pi_customizer/pi_customizer.gemspec
|
207
|
+
- pi_customizer/spec/fixtures/TestVagrantfile
|
208
|
+
- pi_customizer/spec/fixtures/image.img
|
209
|
+
- pi_customizer/spec/fixtures/image.zip
|
210
|
+
- pi_customizer/spec/pi_customizer/builder/build_executor_spec.rb
|
211
|
+
- pi_customizer/spec/pi_customizer/environment/aws_spec.rb
|
212
|
+
- pi_customizer/spec/pi_customizer/environment/environment_builder_factory_spec.rb
|
213
|
+
- pi_customizer/spec/pi_customizer/environment/environment_spec.rb
|
214
|
+
- pi_customizer/spec/pi_customizer/environment/vagrant/vagrant_file_spec.rb
|
215
|
+
- pi_customizer/spec/pi_customizer/environment/vagrant/vagrant_spec.rb
|
216
|
+
- pi_customizer/spec/pi_customizer/version_spec.rb
|
217
|
+
- pi_customizer/spec/pi_customizer/workspace/local_workspace_spec.rb
|
218
|
+
- pi_customizer/spec/pi_customizer/workspace/remote_workspace_spec.rb
|
219
|
+
- pi_customizer/spec/pi_customizer/write/image_writer_spec.rb
|
220
|
+
- pi_customizer/spec/pi_customizer_spec.rb
|
221
|
+
- pi_customizer/spec/spec_helper.rb
|
222
|
+
- version.rb
|
158
223
|
homepage: https://github.com/ottenwbe/pi-gen-environment.git
|
159
224
|
licenses:
|
160
225
|
- MIT
|
@@ -175,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
240
|
version: 1.3.1
|
176
241
|
requirements: []
|
177
242
|
rubyforge_project:
|
178
|
-
rubygems_version: 2.7.
|
243
|
+
rubygems_version: 2.7.7
|
179
244
|
signing_key:
|
180
245
|
specification_version: 4
|
181
246
|
summary: Modify builds of Raspbian images.
|