vagrant-vmpooler 0.1.4 → 0.1.5
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/lib/vagrant-vmpooler/action/read_state.rb +8 -3
 - data/lib/vagrant-vmpooler/version.rb +1 -1
 - data/locales/en.yml +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: bd0d88612ba343bb8bccc2c7c5b864801457a39b
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 0de7d735dbf5d48e145eff3e687f7ce5eee0bb28
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: a7f8a5b26259e0f6c1821bc19e3a84b4c498a5c38456a895f5cc564682b741160eb2781b180ebb8de4e704019350583fdef6ecee7b63e4b7304cf3785916bab5
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 02068a5799c0ffe62d050e43fd4fc4cd66bca0b922fadb393f9f3eb0fb2637700b6e3615c6258fa9f4389f6b70c0a588c168b44e7e9822da5221fffebb5546a6
         
     | 
| 
         @@ -13,11 +13,12 @@ module VagrantPlugins 
     | 
|
| 
       13 
13 
     | 
    
         
             
                    end
         
     | 
| 
       14 
14 
     | 
    
         | 
| 
       15 
15 
     | 
    
         
             
                    def call(env)
         
     | 
| 
       16 
     | 
    
         
            -
                      env[:machine_state_id] = read_state(env 
     | 
| 
      
 16 
     | 
    
         
            +
                      env[:machine_state_id] = read_state(env)
         
     | 
| 
       17 
17 
     | 
    
         
             
                      @app.call(env)
         
     | 
| 
       18 
18 
     | 
    
         
             
                    end
         
     | 
| 
       19 
19 
     | 
    
         | 
| 
       20 
     | 
    
         
            -
                    def read_state( 
     | 
| 
      
 20 
     | 
    
         
            +
                    def read_state(env)
         
     | 
| 
      
 21 
     | 
    
         
            +
                      machine = env[:machine]
         
     | 
| 
       21 
22 
     | 
    
         
             
                      id = machine.id
         
     | 
| 
       22 
23 
     | 
    
         
             
                      return :not_created if id.nil?
         
     | 
| 
       23 
24 
     | 
    
         | 
| 
         @@ -27,7 +28,11 @@ module VagrantPlugins 
     | 
|
| 
       27 
28 
     | 
    
         | 
| 
       28 
29 
     | 
    
         
             
                      server = Pooler.query(verbose, url, id)
         
     | 
| 
       29 
30 
     | 
    
         
             
                      if server['ok'] == false
         
     | 
| 
       30 
     | 
    
         
            -
                         
     | 
| 
      
 31 
     | 
    
         
            +
                        env[:ui].warn(I18n.t("vagrant_vmpooler.not_created"))
         
     | 
| 
      
 32 
     | 
    
         
            +
                        machine.id = nil
         
     | 
| 
      
 33 
     | 
    
         
            +
                        return :not_created
         
     | 
| 
      
 34 
     | 
    
         
            +
                      elsif server[id]["state"] == "destroyed"
         
     | 
| 
      
 35 
     | 
    
         
            +
                        env[:ui].warn(I18n.t("vagrant_vmpooler.deleted"))
         
     | 
| 
       31 
36 
     | 
    
         
             
                        machine.id = nil
         
     | 
| 
       32 
37 
     | 
    
         
             
                        return :not_created
         
     | 
| 
       33 
38 
     | 
    
         
             
                      end
         
     | 
    
        data/locales/en.yml
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: vagrant-vmpooler
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.5
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Brian Cain
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2016-08- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2016-08-15 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: vmfloaty
         
     |