ventriloquist 0.2.0 → 0.2.1
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +8 -2
- data/Gemfile.lock +1 -1
- data/README.md +2 -1
- data/lib/ventriloquist/cap/linux/nvm_install.rb +16 -0
- data/lib/ventriloquist/cap/linux/nvm_install_nodejs.rb +17 -0
- data/lib/ventriloquist/platforms/nodejs.rb +5 -1
- data/lib/ventriloquist/plugin.rb +8 -3
- data/lib/ventriloquist/version.rb +1 -1
- metadata +5 -4
- data/lib/ventriloquist/cap/debian/nodejs_install.rb +0 -21
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: cd4971f545c453a892142ee6178266d29df7e453
         | 
| 4 | 
            +
              data.tar.gz: 23399080896e6e30558ee28697fa16c0bf3b51ee
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 61ce67a1d4dd042faae1cd421aaedef5155e9497a5d9997a16cce463efab44eb8d4e5d2c663b670c19ca73d1c4de91823a3b16abc677416bd46af7919974a3e2
         | 
| 7 | 
            +
              data.tar.gz: 595f5e34bf1fa1a7c6d57d2412910157b53192bd09963747c930f85868e44b5daeaf832ccc2615770bdc36227feb38df69d04c20423c53c4647dd66cae9277ff
         | 
    
        data/.gitignore
    CHANGED
    
    
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,9 +1,15 @@ | |
| 1 | 
            +
            ## [0.2.1](https://github.com/fgrehm/ventriloquist/compare/v0.2.0...v0.2.1) (October 12, 2013)
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            FEATURES:
         | 
| 4 | 
            +
             | 
| 5 | 
            +
              - Make use of nvm for when installing nodejs, allowing installation of any nodejs version
         | 
| 6 | 
            +
                instead of what's available at https://launchpad.net/~chris-lea/+archive/node.js [[GH-22]]
         | 
| 7 | 
            +
             | 
| 1 8 | 
             
            ## [0.2.0](https://github.com/fgrehm/ventriloquist/compare/v0.1.0...v0.2.0) (October 3, 2013)
         | 
| 2 9 |  | 
| 3 10 | 
             
            FEATURES:
         | 
| 4 11 |  | 
| 5 12 | 
             
              - Erlang support [[GH-12]]
         | 
| 6 | 
            -
              - Solr service [[GH-13]]
         | 
| 7 13 | 
             
              - MailCatcher service [[GH-8]]
         | 
| 8 14 |  | 
| 9 15 | 
             
            BUG FIXES:
         | 
| @@ -17,6 +23,6 @@ BUG FIXES: | |
| 17 23 |  | 
| 18 24 |  | 
| 19 25 |  | 
| 26 | 
            +
            [GH-22]: https://github.com/fgrehm/ventriloquist/issues/22
         | 
| 20 27 | 
             
            [GH-12]: https://github.com/fgrehm/ventriloquist/issues/12
         | 
| 21 | 
            -
            [GH-13]: https://github.com/fgrehm/ventriloquist/issues/13
         | 
| 22 28 | 
             
            [GH-8]: https://github.com/fgrehm/ventriloquist/issues/8
         | 
    
        data/Gemfile.lock
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | @@ -146,8 +146,9 @@ Request with the scripts required to set things for other platforms: | |
| 146 146 | 
             
            | --------- | ---------------- |
         | 
| 147 147 | 
             
            | ruby      | rvm + Ruby 2.0.0 |
         | 
| 148 148 | 
             
            | go        | 1.1.2            |
         | 
| 149 | 
            -
            | nodejs    |  | 
| 149 | 
            +
            | nodejs    | nvm + Nodejs     |
         | 
| 150 150 | 
             
            | phantomjs | 1.9.1            |
         | 
| 151 | 
            +
            | erlang    | Currently limited to the latest version available at https://packages.erlang-solutions.com/erlang/ (currently R16B02) |
         | 
| 151 152 |  | 
| 152 153 |  | 
| 153 154 | 
             
            ## Ideas for improvements
         | 
| @@ -0,0 +1,16 @@ | |
| 1 | 
            +
            module VagrantPlugins
         | 
| 2 | 
            +
              module Ventriloquist
         | 
| 3 | 
            +
                module Cap
         | 
| 4 | 
            +
                  module Linux
         | 
| 5 | 
            +
                    module NvmInstall
         | 
| 6 | 
            +
                      def self.nvm_install(machine)
         | 
| 7 | 
            +
                        if ! machine.communicate.test('test -d $HOME/.nvm')
         | 
| 8 | 
            +
                          machine.env.ui.info('Installing NVM')
         | 
| 9 | 
            +
                          machine.communicate.execute('\curl https://raw.github.com/creationix/nvm/master/install.sh | sh')
         | 
| 10 | 
            +
                        end
         | 
| 11 | 
            +
                      end
         | 
| 12 | 
            +
                    end
         | 
| 13 | 
            +
                  end
         | 
| 14 | 
            +
                end
         | 
| 15 | 
            +
              end
         | 
| 16 | 
            +
            end
         | 
| @@ -0,0 +1,17 @@ | |
| 1 | 
            +
            module VagrantPlugins
         | 
| 2 | 
            +
              module Ventriloquist
         | 
| 3 | 
            +
                module Cap
         | 
| 4 | 
            +
                  module Linux
         | 
| 5 | 
            +
                    module NvmInstallNodeJS
         | 
| 6 | 
            +
                      def self.nvm_install_nodejs(machine, version)
         | 
| 7 | 
            +
                        if ! machine.communicate.test("nvm ls | grep #{version}")
         | 
| 8 | 
            +
                          machine.env.ui.info("Installing NodeJS #{version}")
         | 
| 9 | 
            +
                          machine.communicate.execute("nvm install #{version}")
         | 
| 10 | 
            +
                          machine.communicate.execute("nvm alias default #{version}")
         | 
| 11 | 
            +
                        end
         | 
| 12 | 
            +
                      end
         | 
| 13 | 
            +
                    end
         | 
| 14 | 
            +
                  end
         | 
| 15 | 
            +
                end
         | 
| 16 | 
            +
              end
         | 
| 17 | 
            +
            end
         | 
| @@ -3,7 +3,11 @@ module VagrantPlugins | |
| 3 3 | 
             
                module Platforms
         | 
| 4 4 | 
             
                  class NodeJS < Platform
         | 
| 5 5 | 
             
                    def provision(machine)
         | 
| 6 | 
            -
                       | 
| 6 | 
            +
                      @config[:version] = '0.10' if @config[:version] == 'latest'
         | 
| 7 | 
            +
                      machine.guest.tap do |guest|
         | 
| 8 | 
            +
                        guest.capability(:nvm_install)
         | 
| 9 | 
            +
                        guest.capability(:nvm_install_nodejs, @config[:version])
         | 
| 10 | 
            +
                      end
         | 
| 7 11 | 
             
                    end
         | 
| 8 12 | 
             
                  end
         | 
| 9 13 | 
             
                end
         | 
    
        data/lib/ventriloquist/plugin.rb
    CHANGED
    
    | @@ -90,9 +90,14 @@ module VagrantPlugins | |
| 90 90 | 
             
                    Cap::Linux::Untar
         | 
| 91 91 | 
             
                  end
         | 
| 92 92 |  | 
| 93 | 
            -
                  guest_capability(" | 
| 94 | 
            -
                    require_relative "cap/ | 
| 95 | 
            -
                    Cap:: | 
| 93 | 
            +
                  guest_capability("linux", "nvm_install") do
         | 
| 94 | 
            +
                    require_relative "cap/linux/nvm_install"
         | 
| 95 | 
            +
                    Cap::Linux::NvmInstall
         | 
| 96 | 
            +
                  end
         | 
| 97 | 
            +
             | 
| 98 | 
            +
                  guest_capability("linux", "nvm_install_nodejs") do
         | 
| 99 | 
            +
                    require_relative "cap/linux/nvm_install_nodejs"
         | 
| 100 | 
            +
                    Cap::Linux::NvmInstallNodeJS
         | 
| 96 101 | 
             
                  end
         | 
| 97 102 |  | 
| 98 103 | 
             
                  guest_capability("linux", "rvm_install") do
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: ventriloquist
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.2. | 
| 4 | 
            +
              version: 0.2.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Fabio Rehm
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2013-10- | 
| 11 | 
            +
            date: 2013-10-12 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: vocker
         | 
| @@ -50,7 +50,6 @@ files: | |
| 50 50 | 
             
            - lib/ventriloquist/cap/debian/mercurial_install.rb
         | 
| 51 51 | 
             
            - lib/ventriloquist/cap/debian/mysql_install_client.rb
         | 
| 52 52 | 
             
            - lib/ventriloquist/cap/debian/mysql_install_headers.rb
         | 
| 53 | 
            -
            - lib/ventriloquist/cap/debian/nodejs_install.rb
         | 
| 54 53 | 
             
            - lib/ventriloquist/cap/debian/pg_install_client.rb
         | 
| 55 54 | 
             
            - lib/ventriloquist/cap/debian/pg_install_headers.rb
         | 
| 56 55 | 
             
            - lib/ventriloquist/cap/debian/phantomjs_install.rb
         | 
| @@ -58,6 +57,8 @@ files: | |
| 58 57 | 
             
            - lib/ventriloquist/cap/linux/download.rb
         | 
| 59 58 | 
             
            - lib/ventriloquist/cap/linux/make.rb
         | 
| 60 59 | 
             
            - lib/ventriloquist/cap/linux/mysql_configure_client.rb
         | 
| 60 | 
            +
            - lib/ventriloquist/cap/linux/nvm_install.rb
         | 
| 61 | 
            +
            - lib/ventriloquist/cap/linux/nvm_install_nodejs.rb
         | 
| 61 62 | 
             
            - lib/ventriloquist/cap/linux/pg_export_pghost.rb
         | 
| 62 63 | 
             
            - lib/ventriloquist/cap/linux/rvm_install.rb
         | 
| 63 64 | 
             
            - lib/ventriloquist/cap/linux/rvm_install_ruby.rb
         | 
| @@ -123,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 123 124 | 
             
                  version: '0'
         | 
| 124 125 | 
             
            requirements: []
         | 
| 125 126 | 
             
            rubyforge_project: 
         | 
| 126 | 
            -
            rubygems_version: 2. | 
| 127 | 
            +
            rubygems_version: 2.1.5
         | 
| 127 128 | 
             
            signing_key: 
         | 
| 128 129 | 
             
            specification_version: 4
         | 
| 129 130 | 
             
            summary: Vagrant development environments made easy
         | 
| @@ -1,21 +0,0 @@ | |
| 1 | 
            -
            module VagrantPlugins
         | 
| 2 | 
            -
              module Ventriloquist
         | 
| 3 | 
            -
                module Cap
         | 
| 4 | 
            -
                  module Debian
         | 
| 5 | 
            -
                    module NodejsInstall
         | 
| 6 | 
            -
                      def self.nodejs_install(machine)
         | 
| 7 | 
            -
                        return if machine.communicate.test('which nodejs > /dev/null')
         | 
| 8 | 
            -
             | 
| 9 | 
            -
                        machine.env.ui.info('Installing nodejs')
         | 
| 10 | 
            -
                        machine.communicate.tap do |comm|
         | 
| 11 | 
            -
                          comm.sudo('apt-get install -y software-properties-common')
         | 
| 12 | 
            -
                          comm.sudo('add-apt-repository -y ppa:chris-lea/node.js')
         | 
| 13 | 
            -
                          comm.sudo('apt-get update')
         | 
| 14 | 
            -
                          comm.sudo("apt-get install -y nodejs")
         | 
| 15 | 
            -
                        end
         | 
| 16 | 
            -
                      end
         | 
| 17 | 
            -
                    end
         | 
| 18 | 
            -
                  end
         | 
| 19 | 
            -
                end
         | 
| 20 | 
            -
              end
         | 
| 21 | 
            -
            end
         |