egads 0.0.5 → 0.0.6
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 +8 -8
 - data/lib/egads/cli.rb +5 -7
 - data/lib/egads/version.rb +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,15 +1,15 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            !binary "U0hBMQ==":
         
     | 
| 
       3 
3 
     | 
    
         
             
              metadata.gz: !binary |-
         
     | 
| 
       4 
     | 
    
         
            -
                 
     | 
| 
      
 4 
     | 
    
         
            +
                ZGVkZTJjMDhlOWI1MTNiMzgyYzBiOWE2ZmM0ZDUwMzQ1YTAxNjk3Ng==
         
     | 
| 
       5 
5 
     | 
    
         
             
              data.tar.gz: !binary |-
         
     | 
| 
       6 
     | 
    
         
            -
                 
     | 
| 
      
 6 
     | 
    
         
            +
                ZTA2MzAwYjUwNDRhMTI0YjFjYjkxYjY2ZTdhMzI5ZDFmOWY5NzMxNQ==
         
     | 
| 
       7 
7 
     | 
    
         
             
            !binary "U0hBNTEy":
         
     | 
| 
       8 
8 
     | 
    
         
             
              metadata.gz: !binary |-
         
     | 
| 
       9 
     | 
    
         
            -
                 
     | 
| 
       10 
     | 
    
         
            -
                 
     | 
| 
       11 
     | 
    
         
            -
                 
     | 
| 
      
 9 
     | 
    
         
            +
                NmVlNDg5MDRmM2JkZjc4YzA4Mjc0MzZlMWUzNjU0ZWY3NWVmY2RkOWM4Y2Fi
         
     | 
| 
      
 10 
     | 
    
         
            +
                MDI3NjQyNTk5YTA1ZDRiZGQ0Y2JkNWU4NTRhNWQwYmY2MzRiZThhNzVkNzVj
         
     | 
| 
      
 11 
     | 
    
         
            +
                NjlhMzE2NDgyOWJlNGQ1YzQ2ZTJjMGY0ZmJkNzJmZDgwZGNkMzk=
         
     | 
| 
       12 
12 
     | 
    
         
             
              data.tar.gz: !binary |-
         
     | 
| 
       13 
     | 
    
         
            -
                 
     | 
| 
       14 
     | 
    
         
            -
                 
     | 
| 
       15 
     | 
    
         
            -
                 
     | 
| 
      
 13 
     | 
    
         
            +
                YzhmODc0OWQ1MDRkNjE1ZTY1NmIwOWRhNzJiNTA3YzI5YmZmZGJmZDg5Njk0
         
     | 
| 
      
 14 
     | 
    
         
            +
                NDM0YmExZGMwNWFjNzNmNzBhZDUxNmZkNWFmN2ZkNTg2MDA3ZjI0ZTE3OGRl
         
     | 
| 
      
 15 
     | 
    
         
            +
                MzVlMjlmMjNjODZhZWVmN2UyNmU4M2EzOWE1ZjAxYzBiZDA3ZTE=
         
     | 
    
        data/lib/egads/cli.rb
    CHANGED
    
    | 
         @@ -112,6 +112,7 @@ module Egads 
     | 
|
| 
       112 
112 
     | 
    
         
             
                desc "stage SHA", "[remote] Readies SHA for release. If needed, generates URL for SHA and extracts"
         
     | 
| 
       113 
113 
     | 
    
         
             
                method_option :force, type: :boolean, default: false, banner: "Overwrite existing files"
         
     | 
| 
       114 
114 
     | 
    
         
             
                def stage(sha)
         
     | 
| 
      
 115 
     | 
    
         
            +
                  RemoteConfig.setup_environment
         
     | 
| 
       115 
116 
     | 
    
         
             
                  invoke(:extract, [sha], options)
         
     | 
| 
       116 
117 
     | 
    
         
             
                  dir = RemoteConfig.release_dir(sha)
         
     | 
| 
       117 
118 
     | 
    
         
             
                  stage_flag_path = File.join(dir, '.egads-stage-success')
         
     | 
| 
         @@ -120,13 +121,9 @@ module Egads 
     | 
|
| 
       120 
121 
     | 
    
         
             
                      run_hooks_for(:stage, :before)
         
     | 
| 
       121 
122 
     | 
    
         | 
| 
       122 
123 
     | 
    
         
             
                      run_or_die("bundle install --deployment --quiet") if File.readable?("Gemfile")
         
     | 
| 
       123 
     | 
    
         
            -
                      if ENV['SHARED_PATH']
         
     | 
| 
       124 
     | 
    
         
            -
                         
     | 
| 
       125 
     | 
    
         
            -
                         
     | 
| 
       126 
     | 
    
         
            -
                          source = File.join(ENV['SHARED_PATH'], d)
         
     | 
| 
       127 
     | 
    
         
            -
                          destination = File.join(dir, d)
         
     | 
| 
       128 
     | 
    
         
            -
                          symlink_directory(source, destination)
         
     | 
| 
       129 
     | 
    
         
            -
                        end
         
     | 
| 
      
 124 
     | 
    
         
            +
                      if shared_path = ENV['SHARED_PATH']
         
     | 
| 
      
 125 
     | 
    
         
            +
                        symlink_directory File.join(shared_path, 'system'), File.join(dir, 'public', 'system')
         
     | 
| 
      
 126 
     | 
    
         
            +
                        symlink_directory File.join(shared_path, 'log'), File.join(dir, 'log')
         
     | 
| 
       130 
127 
     | 
    
         
             
                      end
         
     | 
| 
       131 
128 
     | 
    
         | 
| 
       132 
129 
     | 
    
         
             
                      run_hooks_for(:stage, :after)
         
     | 
| 
         @@ -140,6 +137,7 @@ module Egads 
     | 
|
| 
       140 
137 
     | 
    
         
             
                desc "release SHA", "[remote] Symlinks SHA to current and restarts services. If needed, stages SHA"
         
     | 
| 
       141 
138 
     | 
    
         
             
                method_option :force, type: :boolean, default: false, banner: "Overwrite existing files while staging"
         
     | 
| 
       142 
139 
     | 
    
         
             
                def release(sha)
         
     | 
| 
      
 140 
     | 
    
         
            +
                  RemoteConfig.setup_environment
         
     | 
| 
       143 
141 
     | 
    
         
             
                  invoke(:stage, [sha], options)
         
     | 
| 
       144 
142 
     | 
    
         
             
                  dir = RemoteConfig.release_dir(sha)
         
     | 
| 
       145 
143 
     | 
    
         
             
                  inside dir do
         
     | 
    
        data/lib/egads/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: egads
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.6
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Aaron Suggs
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2013-06- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2013-06-18 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: fog
         
     |