gepetto 0.0.11 → 0.0.12
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.
- data/History.txt +4 -0
 - data/README.rdoc +2 -7
 - data/lib/gepetto.rb +1 -1
 - data/tasks/sandbox.rake +7 -6
 - metadata +54 -32
 
    
        data/History.txt
    CHANGED
    
    
    
        data/README.rdoc
    CHANGED
    
    | 
         @@ -181,16 +181,11 @@ Destroy sandbox files: 
     | 
|
| 
       181 
181 
     | 
    
         | 
| 
       182 
182 
     | 
    
         
             
              sudo gem install gepetto
         
     | 
| 
       183 
183 
     | 
    
         | 
| 
       184 
     | 
    
         
            -
            or to use the development release:
         
     | 
| 
       185 
     | 
    
         
            -
             
     | 
| 
       186 
     | 
    
         
            -
              gem sources -a http://gems.github.com
         
     | 
| 
       187 
     | 
    
         
            -
              sudo gem install albanpeignier-gepetto
         
     | 
| 
       188 
     | 
    
         
            -
             
     | 
| 
       189 
184 
     | 
    
         
             
            == LICENSE:
         
     | 
| 
       190 
185 
     | 
    
         | 
| 
       191 
186 
     | 
    
         
             
            (The MIT License)
         
     | 
| 
       192 
187 
     | 
    
         | 
| 
       193 
     | 
    
         
            -
            Copyright (c) 2009 Alban Peignier
         
     | 
| 
      
 188 
     | 
    
         
            +
            Copyright (c) 2009, 2010 Alban Peignier
         
     | 
| 
       194 
189 
     | 
    
         | 
| 
       195 
190 
     | 
    
         
             
            Permission is hereby granted, free of charge, to any person obtaining
         
     | 
| 
       196 
191 
     | 
    
         
             
            a copy of this software and associated documentation files (the
         
     | 
| 
         @@ -209,4 +204,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
     | 
|
| 
       209 
204 
     | 
    
         
             
            IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
         
     | 
| 
       210 
205 
     | 
    
         
             
            CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
         
     | 
| 
       211 
206 
     | 
    
         
             
            TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
         
     | 
| 
       212 
     | 
    
         
            -
            SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         
     | 
| 
      
 207 
     | 
    
         
            +
            SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         
     | 
    
        data/lib/gepetto.rb
    CHANGED
    
    
    
        data/tasks/sandbox.rake
    CHANGED
    
    | 
         @@ -95,7 +95,7 @@ class Sandbox < Rake::TaskLib 
     | 
|
| 
       95 
95 
     | 
    
         
             
                    task :image do
         
     | 
| 
       96 
96 
     | 
    
         
             
                      sh "qemu-img create -f raw #{disk_image} #{disk_size}"
         
     | 
| 
       97 
97 
     | 
    
         
             
                      # create the partition table
         
     | 
| 
       98 
     | 
    
         
            -
                      sh "echo '63,,L,*' | /sbin/sfdisk --no-reread -uS -H16 -S63 #{disk_image}"
         
     | 
| 
      
 98 
     | 
    
         
            +
                      sh "echo '63,,L,*' | /sbin/sfdisk --force --no-reread -uS -H16 -S63 #{disk_image}"
         
     | 
| 
       99 
99 
     | 
    
         
             
                    end
         
     | 
| 
       100 
100 
     | 
    
         | 
| 
       101 
101 
     | 
    
         
             
                    task :fs do 
         
     | 
| 
         @@ -229,7 +229,8 @@ class Sandbox < Rake::TaskLib 
     | 
|
| 
       229 
229 
     | 
    
         
             
                    sh "kill -9 `cat tmp/run/#{name}.pid`"
         
     | 
| 
       230 
230 
     | 
    
         
             
                  end
         
     | 
| 
       231 
231 
     | 
    
         | 
| 
       232 
     | 
    
         
            -
                   
     | 
| 
      
 232 
     | 
    
         
            +
                  desc "Revert to the initial image"
         
     | 
| 
      
 233 
     | 
    
         
            +
                  task :revert => 'puppet:clean' do
         
     | 
| 
       233 
234 
     | 
    
         
             
                    sh "qemu-img convert -O raw #{disk_image(:initial)} #{disk_image}"
         
     | 
| 
       234 
235 
     | 
    
         
             
                  end
         
     | 
| 
       235 
236 
     | 
    
         | 
| 
         @@ -398,12 +399,11 @@ class DebianBoostraper 
     | 
|
| 
       398 
399 
     | 
    
         
             
              attr_accessor :version, :mirror, :include, :exclude, :architecture
         
     | 
| 
       399 
400 
     | 
    
         | 
| 
       400 
401 
     | 
    
         
             
              def initialize(&block)
         
     | 
| 
       401 
     | 
    
         
            -
                default_attributes
         
     | 
| 
       402 
     | 
    
         
            -
             
     | 
| 
       403 
     | 
    
         
            -
                # extlinux is provided by syslinux in lenny
         
     | 
| 
       404 
402 
     | 
    
         
             
                @include = %w{puppet ssh udev resolvconf syslinux debian-archive-keyring}
         
     | 
| 
       405 
403 
     | 
    
         
             
                @exclude = %w{at exim mailx libstdc++2.10-glibc2.2 mbr setserial fdutils info ipchains iptables lilo pcmcia-cs ppp pppoe pppoeconf pppconfig telnet exim4 exim4-base exim4-config exim4-daemon-light pciutils modconf tasksel console-common console-tools console-data base-config man-db manpages}
         
     | 
| 
       406 
404 
     | 
    
         | 
| 
      
 405 
     | 
    
         
            +
                default_attributes
         
     | 
| 
      
 406 
     | 
    
         
            +
             
     | 
| 
       407 
407 
     | 
    
         
             
                yield self if block_given?
         
     | 
| 
       408 
408 
     | 
    
         
             
              end
         
     | 
| 
       409 
409 
     | 
    
         | 
| 
         @@ -416,7 +416,7 @@ class DebianBoostraper 
     | 
|
| 
       416 
416 
     | 
    
         | 
| 
       417 
417 
     | 
    
         
             
              def bootstrap(root)
         
     | 
| 
       418 
418 
     | 
    
         
             
                options_as_string = options.collect{|k,v| "--#{k} #{Array(v).join(',')}"}.join(' ')
         
     | 
| 
       419 
     | 
    
         
            -
                sudo "debootstrap #{options_as_string} #{version} #{root} #{mirror}"
         
     | 
| 
      
 419 
     | 
    
         
            +
                sudo "debootstrap --variant=minbase #{options_as_string} #{version} #{root} #{mirror}"
         
     | 
| 
       420 
420 
     | 
    
         
             
              end
         
     | 
| 
       421 
421 
     | 
    
         | 
| 
       422 
422 
     | 
    
         
             
              def options
         
     | 
| 
         @@ -435,6 +435,7 @@ class UbuntuBoostraper < DebianBoostraper 
     | 
|
| 
       435 
435 
     | 
    
         
             
              def default_attributes
         
     | 
| 
       436 
436 
     | 
    
         
             
                super
         
     | 
| 
       437 
437 
     | 
    
         | 
| 
      
 438 
     | 
    
         
            +
                @include << "ubuntu-minimal"
         
     | 
| 
       438 
439 
     | 
    
         
             
                @version = 'intrepid'
         
     | 
| 
       439 
440 
     | 
    
         
             
                @mirror = 'http://archive.ubuntu.com/ubuntu/'
         
     | 
| 
       440 
441 
     | 
    
         
             
              end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,13 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: gepetto
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
               
     | 
| 
      
 4 
     | 
    
         
            +
              hash: 7
         
     | 
| 
      
 5 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 6 
     | 
    
         
            +
              segments: 
         
     | 
| 
      
 7 
     | 
    
         
            +
              - 0
         
     | 
| 
      
 8 
     | 
    
         
            +
              - 0
         
     | 
| 
      
 9 
     | 
    
         
            +
              - 12
         
     | 
| 
      
 10 
     | 
    
         
            +
              version: 0.0.12
         
     | 
| 
       5 
11 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
12 
     | 
    
         
             
            authors: 
         
     | 
| 
       7 
13 
     | 
    
         
             
            - Alban Peignier
         
     | 
| 
         @@ -9,59 +15,69 @@ autorequire: 
     | 
|
| 
       9 
15 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
16 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
17 
     | 
    
         | 
| 
       12 
     | 
    
         
            -
            date: 2010- 
     | 
| 
      
 18 
     | 
    
         
            +
            date: 2010-08-24 00:00:00 +02:00
         
     | 
| 
       13 
19 
     | 
    
         
             
            default_executable: 
         
     | 
| 
       14 
20 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       15 
21 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       16 
22 
     | 
    
         
             
              name: rubigen
         
     | 
| 
       17 
     | 
    
         
            -
               
     | 
| 
       18 
     | 
    
         
            -
               
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
      
 23 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 24 
     | 
    
         
            +
              requirement: &id001 !ruby/object:Gem::Requirement 
         
     | 
| 
      
 25 
     | 
    
         
            +
                none: false
         
     | 
| 
       20 
26 
     | 
    
         
             
                requirements: 
         
     | 
| 
       21 
27 
     | 
    
         
             
                - - ">="
         
     | 
| 
       22 
28 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
      
 29 
     | 
    
         
            +
                    hash: 3
         
     | 
| 
      
 30 
     | 
    
         
            +
                    segments: 
         
     | 
| 
      
 31 
     | 
    
         
            +
                    - 0
         
     | 
| 
       23 
32 
     | 
    
         
             
                    version: "0"
         
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
      
 33 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 34 
     | 
    
         
            +
              version_requirements: *id001
         
     | 
| 
       25 
35 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       26 
36 
     | 
    
         
             
              name: rake
         
     | 
| 
       27 
     | 
    
         
            -
               
     | 
| 
       28 
     | 
    
         
            -
               
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
      
 37 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 38 
     | 
    
         
            +
              requirement: &id002 !ruby/object:Gem::Requirement 
         
     | 
| 
      
 39 
     | 
    
         
            +
                none: false
         
     | 
| 
       30 
40 
     | 
    
         
             
                requirements: 
         
     | 
| 
       31 
41 
     | 
    
         
             
                - - ">="
         
     | 
| 
       32 
42 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
      
 43 
     | 
    
         
            +
                    hash: 3
         
     | 
| 
      
 44 
     | 
    
         
            +
                    segments: 
         
     | 
| 
      
 45 
     | 
    
         
            +
                    - 0
         
     | 
| 
       33 
46 
     | 
    
         
             
                    version: "0"
         
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
      
 47 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 48 
     | 
    
         
            +
              version_requirements: *id002
         
     | 
| 
       35 
49 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       36 
50 
     | 
    
         
             
              name: rubyforge
         
     | 
| 
       37 
     | 
    
         
            -
               
     | 
| 
       38 
     | 
    
         
            -
               
     | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
      
 51 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 52 
     | 
    
         
            +
              requirement: &id003 !ruby/object:Gem::Requirement 
         
     | 
| 
      
 53 
     | 
    
         
            +
                none: false
         
     | 
| 
       40 
54 
     | 
    
         
             
                requirements: 
         
     | 
| 
       41 
55 
     | 
    
         
             
                - - ">="
         
     | 
| 
       42 
56 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
       43 
     | 
    
         
            -
                     
     | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
       45 
     | 
    
         
            -
            -  
     | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
      
 57 
     | 
    
         
            +
                    hash: 7
         
     | 
| 
      
 58 
     | 
    
         
            +
                    segments: 
         
     | 
| 
      
 59 
     | 
    
         
            +
                    - 2
         
     | 
| 
      
 60 
     | 
    
         
            +
                    - 0
         
     | 
| 
      
 61 
     | 
    
         
            +
                    - 4
         
     | 
| 
      
 62 
     | 
    
         
            +
                    version: 2.0.4
         
     | 
| 
       47 
63 
     | 
    
         
             
              type: :development
         
     | 
| 
       48 
     | 
    
         
            -
               
     | 
| 
       49 
     | 
    
         
            -
              version_requirements: !ruby/object:Gem::Requirement 
         
     | 
| 
       50 
     | 
    
         
            -
                requirements: 
         
     | 
| 
       51 
     | 
    
         
            -
                - - ">="
         
     | 
| 
       52 
     | 
    
         
            -
                  - !ruby/object:Gem::Version 
         
     | 
| 
       53 
     | 
    
         
            -
                    version: 0.3.0
         
     | 
| 
       54 
     | 
    
         
            -
                version: 
         
     | 
| 
      
 64 
     | 
    
         
            +
              version_requirements: *id003
         
     | 
| 
       55 
65 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       56 
66 
     | 
    
         
             
              name: hoe
         
     | 
| 
       57 
     | 
    
         
            -
               
     | 
| 
       58 
     | 
    
         
            -
               
     | 
| 
       59 
     | 
    
         
            -
             
     | 
| 
      
 67 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 68 
     | 
    
         
            +
              requirement: &id004 !ruby/object:Gem::Requirement 
         
     | 
| 
      
 69 
     | 
    
         
            +
                none: false
         
     | 
| 
       60 
70 
     | 
    
         
             
                requirements: 
         
     | 
| 
       61 
71 
     | 
    
         
             
                - - ">="
         
     | 
| 
       62 
72 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
       63 
     | 
    
         
            -
                     
     | 
| 
       64 
     | 
    
         
            -
             
     | 
| 
      
 73 
     | 
    
         
            +
                    hash: 21
         
     | 
| 
      
 74 
     | 
    
         
            +
                    segments: 
         
     | 
| 
      
 75 
     | 
    
         
            +
                    - 2
         
     | 
| 
      
 76 
     | 
    
         
            +
                    - 6
         
     | 
| 
      
 77 
     | 
    
         
            +
                    - 1
         
     | 
| 
      
 78 
     | 
    
         
            +
                    version: 2.6.1
         
     | 
| 
      
 79 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 80 
     | 
    
         
            +
              version_requirements: *id004
         
     | 
| 
       65 
81 
     | 
    
         
             
            description: |-
         
     | 
| 
       66 
82 
     | 
    
         
             
              A helper suite for Puppet projects to create, manage and help daily development
         
     | 
| 
       67 
83 
     | 
    
         | 
| 
         @@ -125,21 +141,27 @@ rdoc_options: 
     | 
|
| 
       125 
141 
     | 
    
         
             
            require_paths: 
         
     | 
| 
       126 
142 
     | 
    
         
             
            - lib
         
     | 
| 
       127 
143 
     | 
    
         
             
            required_ruby_version: !ruby/object:Gem::Requirement 
         
     | 
| 
      
 144 
     | 
    
         
            +
              none: false
         
     | 
| 
       128 
145 
     | 
    
         
             
              requirements: 
         
     | 
| 
       129 
146 
     | 
    
         
             
              - - ">="
         
     | 
| 
       130 
147 
     | 
    
         
             
                - !ruby/object:Gem::Version 
         
     | 
| 
      
 148 
     | 
    
         
            +
                  hash: 3
         
     | 
| 
      
 149 
     | 
    
         
            +
                  segments: 
         
     | 
| 
      
 150 
     | 
    
         
            +
                  - 0
         
     | 
| 
       131 
151 
     | 
    
         
             
                  version: "0"
         
     | 
| 
       132 
     | 
    
         
            -
              version: 
         
     | 
| 
       133 
152 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement 
         
     | 
| 
      
 153 
     | 
    
         
            +
              none: false
         
     | 
| 
       134 
154 
     | 
    
         
             
              requirements: 
         
     | 
| 
       135 
155 
     | 
    
         
             
              - - ">="
         
     | 
| 
       136 
156 
     | 
    
         
             
                - !ruby/object:Gem::Version 
         
     | 
| 
      
 157 
     | 
    
         
            +
                  hash: 3
         
     | 
| 
      
 158 
     | 
    
         
            +
                  segments: 
         
     | 
| 
      
 159 
     | 
    
         
            +
                  - 0
         
     | 
| 
       137 
160 
     | 
    
         
             
                  version: "0"
         
     | 
| 
       138 
     | 
    
         
            -
              version: 
         
     | 
| 
       139 
161 
     | 
    
         
             
            requirements: []
         
     | 
| 
       140 
162 
     | 
    
         | 
| 
       141 
163 
     | 
    
         
             
            rubyforge_project: gepetto
         
     | 
| 
       142 
     | 
    
         
            -
            rubygems_version: 1.3. 
     | 
| 
      
 164 
     | 
    
         
            +
            rubygems_version: 1.3.7
         
     | 
| 
       143 
165 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       144 
166 
     | 
    
         
             
            specification_version: 3
         
     | 
| 
       145 
167 
     | 
    
         
             
            summary: "A helper suite for Puppet projects to create, manage and help daily development  More information about Puppet: http://reductivelabs.com/trac/puppet/"
         
     |