egads 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjBiMWEzYzA0OGQyOWY2NGM3NzNhOWM3ZWU1YjE1ZDc4YzE4YWIyOQ==
4
+ ZGVkZTJjMDhlOWI1MTNiMzgyYzBiOWE2ZmM0ZDUwMzQ1YTAxNjk3Ng==
5
5
  data.tar.gz: !binary |-
6
- NzJjM2ZlMGRmOGI5NmVlMWFkZTQxNmRjZmMzMzBjZDE2YzMzN2FlMA==
6
+ ZTA2MzAwYjUwNDRhMTI0YjFjYjkxYjY2ZTdhMzI5ZDFmOWY5NzMxNQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZjU0YzcyN2VkYzcxYzk3Y2ZiZWRkMTc0ZjIyZTM0MmUwOTk1YWQ2YzFmOWMz
10
- OTRjNDU3YTBkNjJjZGNjZjFmMmJiMDUxMDU5MzUxOTVjMjdkOWYxMGFkNzhh
11
- NWY3MGJmOGQ0ZWFkNThmZTNmZGUyNDJlMjg4Yzk2YzZlMTdkZDE=
9
+ NmVlNDg5MDRmM2JkZjc4YzA4Mjc0MzZlMWUzNjU0ZWY3NWVmY2RkOWM4Y2Fi
10
+ MDI3NjQyNTk5YTA1ZDRiZGQ0Y2JkNWU4NTRhNWQwYmY2MzRiZThhNzVkNzVj
11
+ NjlhMzE2NDgyOWJlNGQ1YzQ2ZTJjMGY0ZmJkNzJmZDgwZGNkMzk=
12
12
  data.tar.gz: !binary |-
13
- MzU2NTZhYzE0NWI3YzMxYzQ5ODQ0NDc2ZGYxZTFjY2EyM2ZhNjlmZTMzOWMz
14
- NTcyNDM4YzQ5ZTZlNzk0NjkyYmU0ODAyYTIxMGJiMjg4MmM3NzA4NzJmZWZh
15
- NmExMGVmOGM0MjJiMjFlMzQ1YWZhYmE0YjI2YzY5NzA0NWQxMDM=
13
+ YzhmODc0OWQ1MDRkNjE1ZTY1NmIwOWRhNzJiNTA3YzI5YmZmZGJmZDg5Njk0
14
+ NDM0YmExZGMwNWFjNzNmNzBhZDUxNmZkNWFmN2ZkNTg2MDA3ZjI0ZTE3OGRl
15
+ MzVlMjlmMjNjODZhZWVmN2UyNmU4M2EzOWE1ZjAxYzBiZDA3ZTE=
@@ -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
- symlinked_dirs = %w(public/system tmp/pids log)
125
- symlinked_dirs.each do |d|
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
@@ -1,3 +1,3 @@
1
1
  module Egads
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
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.5
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-16 00:00:00.000000000 Z
11
+ date: 2013-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog