veewee 0.3.0.alpha1 → 0.3.0.alpha2
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/Gemfile.lock +1 -1
- data/lib/veewee/version.rb +1 -1
- metadata +3 -9
- data/bin/veewee-kvm-old +0 -34
- data/bin/veewee-vagrant +0 -55
- data/bin/veewee-vmfusion +0 -34
    
        data/Gemfile.lock
    CHANGED
    
    
    
        data/lib/veewee/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,15 +1,15 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: veewee
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
              hash: - | 
| 4 | 
            +
              hash: -3702664344
         | 
| 5 5 | 
             
              prerelease: 6
         | 
| 6 6 | 
             
              segments: 
         | 
| 7 7 | 
             
              - 0
         | 
| 8 8 | 
             
              - 3
         | 
| 9 9 | 
             
              - 0
         | 
| 10 10 | 
             
              - alpha
         | 
| 11 | 
            -
              -  | 
| 12 | 
            -
              version: 0.3.0. | 
| 11 | 
            +
              - 2
         | 
| 12 | 
            +
              version: 0.3.0.alpha2
         | 
| 13 13 | 
             
            platform: ruby
         | 
| 14 14 | 
             
            authors: 
         | 
| 15 15 | 
             
            - Patrick Debois
         | 
| @@ -247,9 +247,6 @@ email: | |
| 247 247 | 
             
            - ringo.desmet@gmail.com
         | 
| 248 248 | 
             
            executables: 
         | 
| 249 249 | 
             
            - veewee
         | 
| 250 | 
            -
            - veewee-kvm-old
         | 
| 251 | 
            -
            - veewee-vagrant
         | 
| 252 | 
            -
            - veewee-vmfusion
         | 
| 253 250 | 
             
            extensions: []
         | 
| 254 251 |  | 
| 255 252 | 
             
            extra_rdoc_files: []
         | 
| @@ -264,9 +261,6 @@ files: | |
| 264 261 | 
             
            - README.md
         | 
| 265 262 | 
             
            - Rakefile
         | 
| 266 263 | 
             
            - bin/veewee
         | 
| 267 | 
            -
            - bin/veewee-kvm-old
         | 
| 268 | 
            -
            - bin/veewee-vagrant
         | 
| 269 | 
            -
            - bin/veewee-vmfusion
         | 
| 270 264 | 
             
            - lib/fission.rb
         | 
| 271 265 | 
             
            - lib/fission/cli.rb
         | 
| 272 266 | 
             
            - lib/fission/command.rb
         | 
    
        data/bin/veewee-kvm-old
    DELETED
    
    | @@ -1,34 +0,0 @@ | |
| 1 | 
            -
            #!/usr/bin/env ruby
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            require 'rubygems'
         | 
| 4 | 
            -
            require 'thor'
         | 
| 5 | 
            -
            require 'libvirt'
         | 
| 6 | 
            -
            require 'fog'
         | 
| 7 | 
            -
             | 
| 8 | 
            -
            require 'veewee'
         | 
| 9 | 
            -
             | 
| 10 | 
            -
            class VeeweeCLI < Thor
         | 
| 11 | 
            -
             | 
| 12 | 
            -
              desc "build [NAME]", "build the box defined"
         | 
| 13 | 
            -
              method_options :force => :boolean
         | 
| 14 | 
            -
              def build(box_name)
         | 
| 15 | 
            -
             | 
| 16 | 
            -
             | 
| 17 | 
            -
                logger=ANSI::Logger.new(STDOUT)
         | 
| 18 | 
            -
                logger.level=Object.const_get('ANSI').const_get('Logger').const_get('DEBUG')
         | 
| 19 | 
            -
                logger.formatter do |severity, timestamp, progname, msg|
         | 
| 20 | 
            -
                    #  "#{progname}@#{timestamp} - #{severity}::#{msg}"
         | 
| 21 | 
            -
                    "#{msg}\n"
         | 
| 22 | 
            -
                end
         | 
| 23 | 
            -
                logger.ansicolor=false
         | 
| 24 | 
            -
             | 
| 25 | 
            -
             | 
| 26 | 
            -
                puts "Building box #{box_name}"
         | 
| 27 | 
            -
                box=Veewee::Environment.new(options,logger).get_builder(:kvm,options).get_box(box_name,box_name,options)
         | 
| 28 | 
            -
                box.build(options)
         | 
| 29 | 
            -
             | 
| 30 | 
            -
              end
         | 
| 31 | 
            -
             | 
| 32 | 
            -
            end
         | 
| 33 | 
            -
             | 
| 34 | 
            -
            VeeweeCLI.start
         | 
    
        data/bin/veewee-vagrant
    DELETED
    
    | @@ -1,55 +0,0 @@ | |
| 1 | 
            -
            #!/usr/bin/env ruby
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            require 'rubygems'
         | 
| 4 | 
            -
            require 'thor'
         | 
| 5 | 
            -
            require 'bundler'
         | 
| 6 | 
            -
            require 'virtualbox'
         | 
| 7 | 
            -
            require 'veewee'
         | 
| 8 | 
            -
             | 
| 9 | 
            -
             | 
| 10 | 
            -
            class VeeweeCLI < Thor
         | 
| 11 | 
            -
             | 
| 12 | 
            -
              desc "define [NAME] [TEMPLATE]", "initializes a box from a template"
         | 
| 13 | 
            -
              method_options :force => :boolean
         | 
| 14 | 
            -
              def define(box_name=nil, template=nil)
         | 
| 15 | 
            -
             | 
| 16 | 
            -
                if (box_name.nil?)
         | 
| 17 | 
            -
                  puts "please provide a box_name"
         | 
| 18 | 
            -
                  exit
         | 
| 19 | 
            -
                end
         | 
| 20 | 
            -
             | 
| 21 | 
            -
                puts "Init a new box #{box_name}, starting from template #{template}"
         | 
| 22 | 
            -
                Veewee::Environment.define(box_name,template)
         | 
| 23 | 
            -
             | 
| 24 | 
            -
              end
         | 
| 25 | 
            -
             | 
| 26 | 
            -
              desc "templates", "list the template available"
         | 
| 27 | 
            -
              def templates
         | 
| 28 | 
            -
                Veewee::Environment.list_templates
         | 
| 29 | 
            -
              end
         | 
| 30 | 
            -
             | 
| 31 | 
            -
              desc "build [NAME]", "build the box defined"
         | 
| 32 | 
            -
              method_options :force => :boolean
         | 
| 33 | 
            -
              def build(box_name)
         | 
| 34 | 
            -
                puts "Building box #{box_name}"
         | 
| 35 | 
            -
                vs=Veewee::Environment.new(options)
         | 
| 36 | 
            -
                vd=vs.get_definition(box_name)
         | 
| 37 | 
            -
                vs.build(box_name,vd)
         | 
| 38 | 
            -
              end
         | 
| 39 | 
            -
             | 
| 40 | 
            -
              desc "export [NAME]", "export the box"
         | 
| 41 | 
            -
              method_options :force => :boolean
         | 
| 42 | 
            -
              def export(box_name)
         | 
| 43 | 
            -
                if (!box_name.nil?)
         | 
| 44 | 
            -
                  Veewee::Environment.export_box(box_name)
         | 
| 45 | 
            -
                end
         | 
| 46 | 
            -
              end
         | 
| 47 | 
            -
             | 
| 48 | 
            -
            end
         | 
| 49 | 
            -
             | 
| 50 | 
            -
            version=VirtualBox.version
         | 
| 51 | 
            -
            if (version.match(/^4./))
         | 
| 52 | 
            -
              VeeweeCLI.start
         | 
| 53 | 
            -
            else
         | 
| 54 | 
            -
              puts "veewee only supports VirtualBox 4.x"
         | 
| 55 | 
            -
            end
         | 
    
        data/bin/veewee-vmfusion
    DELETED
    
    | @@ -1,34 +0,0 @@ | |
| 1 | 
            -
            #!/usr/bin/env ruby
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            require 'rubygems'
         | 
| 4 | 
            -
            require 'thor'
         | 
| 5 | 
            -
            require 'fog'
         | 
| 6 | 
            -
            require 'fission'
         | 
| 7 | 
            -
             | 
| 8 | 
            -
            require 'veewee'
         | 
| 9 | 
            -
             | 
| 10 | 
            -
            class VeeweeCLI < Thor
         | 
| 11 | 
            -
             | 
| 12 | 
            -
              desc "build [NAME]", "build the box defined"
         | 
| 13 | 
            -
              method_options :force => :boolean
         | 
| 14 | 
            -
              def build(box_name)
         | 
| 15 | 
            -
             | 
| 16 | 
            -
             | 
| 17 | 
            -
                logger=ANSI::Logger.new(STDOUT)
         | 
| 18 | 
            -
                logger.level=Object.const_get('ANSI').const_get('Logger').const_get('DEBUG')
         | 
| 19 | 
            -
                logger.formatter do |severity, timestamp, progname, msg|
         | 
| 20 | 
            -
                    #  "#{progname}@#{timestamp} - #{severity}::#{msg}"
         | 
| 21 | 
            -
                    "#{msg}\n"
         | 
| 22 | 
            -
                end
         | 
| 23 | 
            -
                logger.ansicolor=false
         | 
| 24 | 
            -
             | 
| 25 | 
            -
             | 
| 26 | 
            -
                puts "Building box #{box_name}"
         | 
| 27 | 
            -
                box=Veewee::Environment.new(options,logger).get_builder(:vmfusion,options).get_box(box_name,box_name,options)
         | 
| 28 | 
            -
                box.build(options)
         | 
| 29 | 
            -
             | 
| 30 | 
            -
              end
         | 
| 31 | 
            -
             | 
| 32 | 
            -
            end
         | 
| 33 | 
            -
             | 
| 34 | 
            -
            VeeweeCLI.start
         |