boxgrinder-core 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,4 +1,8 @@
1
1
 
2
+ v0.1.5
3
+
4
+ * [BGBUILD-73] Add support for kickstart files
5
+
2
6
  v0.1.4
3
7
 
4
8
  * Removed QueueHelper class
data/Manifest CHANGED
@@ -0,0 +1,29 @@
1
+ CHANGELOG
2
+ LICENSE
3
+ Manifest
4
+ README
5
+ Rakefile
6
+ boxgrinder-core.gemspec
7
+ lib/boxgrinder-core.rb
8
+ lib/boxgrinder-core/defaults.rb
9
+ lib/boxgrinder-core/helpers/appliance-config-helper.rb
10
+ lib/boxgrinder-core/helpers/appliance-helper.rb
11
+ lib/boxgrinder-core/helpers/exec-helper.rb
12
+ lib/boxgrinder-core/helpers/log-helper.rb
13
+ lib/boxgrinder-core/models/appliance-config.rb
14
+ lib/boxgrinder-core/models/config.rb
15
+ lib/boxgrinder-core/models/task.rb
16
+ lib/boxgrinder-core/validators/appliance-config-validator.rb
17
+ lib/boxgrinder-core/validators/errors.rb
18
+ rubygem-boxgrinder-core.spec
19
+ spec/helpers/appliance-config-helper-spec.rb
20
+ spec/helpers/appliance-helper-spec.rb
21
+ spec/helpers/exec-helper-spec.rb
22
+ spec/helpers/log-helper-spec.rb
23
+ spec/rspec/ls/one
24
+ spec/rspec/ls/two
25
+ spec/rspec/rspec-config-helper.rb
26
+ spec/rspec/src/appliances/ephemeral-repo.appl
27
+ spec/rspec/src/appliances/full.appl
28
+ spec/rspec/src/appliances/repo.appl
29
+ spec/validators/appliance-config-validator-spec.rb
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{boxgrinder-core}
5
- s.version = "0.1.4"
5
+ s.version = "0.1.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Marek Goldmann"]
9
- s.date = %q{2010-12-03}
9
+ s.date = %q{2010-12-17}
10
10
  s.description = %q{Core library for BoxGrinder}
11
11
  s.email = %q{info@boxgrinder.org}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README", "lib/boxgrinder-core.rb", "lib/boxgrinder-core/defaults.rb", "lib/boxgrinder-core/helpers/appliance-config-helper.rb", "lib/boxgrinder-core/helpers/appliance-helper.rb", "lib/boxgrinder-core/helpers/exec-helper.rb", "lib/boxgrinder-core/helpers/log-helper.rb", "lib/boxgrinder-core/models/appliance-config.rb", "lib/boxgrinder-core/models/config.rb", "lib/boxgrinder-core/models/task.rb", "lib/boxgrinder-core/validators/appliance-config-validator.rb", "lib/boxgrinder-core/validators/errors.rb"]
@@ -18,41 +18,41 @@
18
18
 
19
19
  module BoxGrinder
20
20
  # here are global variables
21
- SUPPORTED_ARCHES = [ "i386", "x86_64" ]
21
+ SUPPORTED_ARCHES = ["i386", "x86_64"]
22
22
 
23
- APPLIANCE_DEFAULTS = {
24
- :os => {
25
- :password => "boxgrinder"
26
- },
27
- :hardware => {
28
- :partition => 1,
29
- :memory => 256,
30
- :network => "NAT",
31
- :cpus => 1
32
- }
23
+ APPLIANCE_DEFAULTS = {
24
+ :os => {
25
+ :password => "boxgrinder"
26
+ },
27
+ :hardware => {
28
+ :partitions => {"/" => { 'size' => 1 }},
29
+ :memory => 256,
30
+ :network => "NAT",
31
+ :cpus => 1
32
+ }
33
33
  }
34
34
 
35
- SUPPORTED_DESKTOP_TYPES = [ "gnome" ]
35
+ SUPPORTED_DESKTOP_TYPES = ["gnome"]
36
36
 
37
- DEFAULT_LOCATION = {
38
- :log => 'log/boxgrinder.log'
37
+ DEFAULT_LOCATION = {
38
+ :log => 'log/boxgrinder.log'
39
39
  }
40
40
 
41
- DEFAULT_HELP_TEXT = {
42
- :general => "See documentation: http://community.jboss.org/docs/DOC-14358."
41
+ DEFAULT_HELP_TEXT = {
42
+ :general => "See documentation: http://community.jboss.org/docs/DOC-14358."
43
43
  }
44
44
 
45
- DEFAULT_PROJECT_CONFIG = {
46
- :name => 'BoxGrinder',
47
- :version => '1.0.0',
48
- :release => 'SNAPSHOT',
49
- :dir_build => 'build',
50
- #:topdir => "#{self.} build/topdir",
51
- :dir_src_cache => '/var/cache/boxgrinder/sources-cache',
52
- :dir_rpms_cache => '/var/cache/boxgrinder/rpms-cache',
53
- :dir_specs => 'specs',
54
- :dir_appliances => 'appliances',
55
- :dir_src => 'src',
56
- :dir_kickstarts => 'kickstarts'
45
+ DEFAULT_PROJECT_CONFIG = {
46
+ :name => 'BoxGrinder',
47
+ :version => '1.0.0',
48
+ :release => 'SNAPSHOT',
49
+ :dir_build => 'build',
50
+ #:topdir => "#{self.} build/topdir",
51
+ :dir_src_cache => '/var/cache/boxgrinder/sources-cache',
52
+ :dir_rpms_cache => '/var/cache/boxgrinder/rpms-cache',
53
+ :dir_specs => 'specs',
54
+ :dir_appliances => 'appliances',
55
+ :dir_src => 'src',
56
+ :dir_kickstarts => 'kickstarts'
57
57
  }
58
58
  end
@@ -23,34 +23,35 @@ require 'hashery/opencascade'
23
23
  module BoxGrinder
24
24
  class ApplianceConfig
25
25
  def initialize
26
- @name = nil
27
- @summary = nil
26
+ @name = nil
27
+ @summary = nil
28
28
 
29
- @variables = {}
29
+ @variables = {}
30
30
 
31
- @os = OpenCascade.new
31
+ @os = OpenCascade.new
32
32
 
33
- @os.name = nil
34
- @os.version = nil
35
- @os.password = nil
33
+ @os.name = nil
34
+ @os.version = nil
35
+ @os.password = nil
36
36
 
37
- @hardware = OpenCascade.new
37
+ @hardware = OpenCascade.new
38
38
 
39
- @hardware.cpus = APPLIANCE_DEFAULTS[:hardware][:cpus]
40
- @hardware.memory = APPLIANCE_DEFAULTS[:hardware][:memory]
41
- @hardware.network = APPLIANCE_DEFAULTS[:hardware][:network]
39
+ @hardware.cpus = APPLIANCE_DEFAULTS[:hardware][:cpus]
40
+ @hardware.memory = APPLIANCE_DEFAULTS[:hardware][:memory]
41
+ @hardware.network = APPLIANCE_DEFAULTS[:hardware][:network]
42
+ @hardware.partitions = APPLIANCE_DEFAULTS[:hardware][:partitions]
42
43
 
43
- @post = {}
44
+ @post = {}
44
45
 
45
- @packages = OpenCascade.new
46
- @packages.includes = []
47
- @packages.excludes = []
46
+ @packages = OpenCascade.new
47
+ @packages.includes = []
48
+ @packages.excludes = []
48
49
 
49
- @appliances = []
50
- @repos = []
50
+ @appliances = []
51
+ @repos = []
51
52
 
52
- @version = 1
53
- @release = 0
53
+ @version = 1
54
+ @release = 0
54
55
  end
55
56
 
56
57
  attr_reader :variables
@@ -76,13 +77,13 @@ module BoxGrinder
76
77
  end
77
78
 
78
79
  def init_arch
79
- @hardware.arch = `uname -m`.chomp.strip
80
+ @hardware.arch = `uname -m`.chomp.strip
80
81
  @hardware.base_arch = is64bit? ? "x86_64" : "i386"
81
82
  self
82
83
  end
83
84
 
84
85
  def initialize_paths
85
- @path = OpenCascade.new
86
+ @path = OpenCascade.new
86
87
 
87
88
  @path.os = "#{@os.name}/#{@os.version}"
88
89
  @path.main = "#{@hardware.arch}/#{@path.os}"
@@ -28,7 +28,7 @@ module BoxGrinder
28
28
 
29
29
  def validate
30
30
  check_for_missing_field('name')
31
- check_for_missing_field('summary')
31
+ # check_for_missing_field('summary')
32
32
 
33
33
  validate_os
34
34
  validate_hardware
@@ -5,7 +5,7 @@
5
5
 
6
6
  Summary: Core library for BoxGrinder
7
7
  Name: rubygem-%{gemname}
8
- Version: 0.1.4
8
+ Version: 0.1.5
9
9
  Release: 1%{?dist}
10
10
  Group: Development/Languages
11
11
  License: LGPLv3+
@@ -73,6 +73,10 @@ popd
73
73
  %{gemdir}/doc/%{gemname}-%{version}
74
74
 
75
75
  %changelog
76
+ * Sun Dec 12 2010 <mgoldman@redhat.com> - 0.1.5-1
77
+ - Updated to upstream version: 0.1.5
78
+ - [BGBUILD-73] Add support for kickstart files
79
+
76
80
  * Thu Dec 02 2010 <mgoldman@redhat.com> - 0.1.4-1
77
81
  - Updated to new upstream release: 0.1.4
78
82
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxgrinder-core
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Marek Goldmann
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-03 00:00:00 +01:00
18
+ date: 2010-12-17 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency