vaporware 0.0.4 → 0.0.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/vaporware.rb +13 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 3047129f62ce375256a00a7fb533c7bb50118f04
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 0a9a8363b361a2347bec05d6ab271cf0acef3e03
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 3a64172a4a335b60e8c0e6923d2caa1e44ec20897d62d61ff73c4797853cce090b3c124948744f7ab6ab12d1b3fc195d50925ba0020d05c40165a31aefa2783c
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 557fbedbf9ba5ed3edae0badcfe33f62bd94abe8d3c41447513c7e45b172f7c5845dc5ba3b994aa776c299fcbb4f47002239431623663d3979550b0bff61ac31
         
     | 
    
        data/lib/vaporware.rb
    CHANGED
    
    | 
         @@ -42,13 +42,25 @@ class Vaporware 
     | 
|
| 
       42 
42 
     | 
    
         | 
| 
       43 
43 
     | 
    
         
             
              def delete_stack
         
     | 
| 
       44 
44 
     | 
    
         
             
                with_progress "deletion" do
         
     | 
| 
       45 
     | 
    
         
            -
                  @client.delete_stack( 
     | 
| 
      
 45 
     | 
    
         
            +
                  @client.delete_stack(stack_name: @stack_name)
         
     | 
| 
       46 
46 
     | 
    
         
             
                  @client.wait_until(:stack_delete_complete, stack_name: @stack_name)
         
     | 
| 
       47 
47 
     | 
    
         
             
                end
         
     | 
| 
       48 
48 
     | 
    
         
             
              end
         
     | 
| 
       49 
49 
     | 
    
         | 
| 
      
 50 
     | 
    
         
            +
              def outputs
         
     | 
| 
      
 51 
     | 
    
         
            +
                output = get_outputs.reduce("") do |acc, output|
         
     | 
| 
      
 52 
     | 
    
         
            +
                  acc << "#{output.description} (#{output.output_key}): #{output.output_value}\n"
         
     | 
| 
      
 53 
     | 
    
         
            +
                end
         
     | 
| 
      
 54 
     | 
    
         
            +
                return "Stack '#{@stack_name}' has no outputs." if output == ""
         
     | 
| 
      
 55 
     | 
    
         
            +
                output
         
     | 
| 
      
 56 
     | 
    
         
            +
              end
         
     | 
| 
      
 57 
     | 
    
         
            +
             
     | 
| 
       50 
58 
     | 
    
         
             
              private
         
     | 
| 
       51 
59 
     | 
    
         | 
| 
      
 60 
     | 
    
         
            +
              def get_outputs
         
     | 
| 
      
 61 
     | 
    
         
            +
                @client.describe_stacks(stack_name: @stack_name).stacks.first.outputs
         
     | 
| 
      
 62 
     | 
    
         
            +
              end
         
     | 
| 
      
 63 
     | 
    
         
            +
             
     | 
| 
       52 
64 
     | 
    
         
             
              def build_parameters parameters
         
     | 
| 
       53 
65 
     | 
    
         
             
                parameters.keys.reduce([]) do |acc, key|
         
     | 
| 
       54 
66 
     | 
    
         
             
                  acc << {
         
     |