docker-deploy 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0435a79eec7d832534bd04cea705966e574ce363
4
- data.tar.gz: a70b934b9c33bc3e0b23189b3ac1cf7eaced8f6a
3
+ metadata.gz: bfca0ec413ebf7f90feade86eea9c92708fa08cf
4
+ data.tar.gz: 1f1aaedbafc2a1032356ad5e526d816c120fdfe2
5
5
  SHA512:
6
- metadata.gz: ab66dcafe582866d4a4ecb42daffa23fd8b2e07d8d4c4c2c41f5070aa8b70487f54db577110ad0810cc257e02d75813f71c35ff891ab6fc6c8608522285995e7
7
- data.tar.gz: 5915dc05e964e77ba1aadffa0114d50aa7d696c806502bca8c9fc319e05390a67d2a0c6d93ef39074caf3beb6f844a3d9b3b77bf59385bb554ad5f1d8a466c9b
6
+ metadata.gz: 53b003bfc4e6ea0eaceef54d14e92aa9f76380d1148cb0a48f6e6ea1b4f098b3393f3eb15c3e1078165e024d9ee741ba09f9758f05a12d5bc7e4ec8b31062339
7
+ data.tar.gz: e55e79b0df617f9c92f17d5b281feae1dafac2b7bc8f17c2e8943c3a6dfb4bd061d71ca84bc33dbb8f4a7b302d94ed9c87ba9b3b93dceaafcd44f031d023f6e0
@@ -5,6 +5,7 @@ class GoogleCloudPlatform
5
5
  def initialize(project_name, app_name, credentials)
6
6
  @project_name = project_name
7
7
  @app_name = app_name
8
+
8
9
  # assume we already logged in (GCE instance or GCloud SDK)
9
10
  puts project_name
10
11
 
@@ -37,8 +38,8 @@ class GoogleCloudPlatform
37
38
  dist = <<-EOF
38
39
  #!/bin/bash
39
40
 
40
- gsutil cp gs://<app_name>/docker-compose/<primary_yaml> .
41
- gsutil cp gs://<app_name>/docker-compose/<backup_yaml> .
41
+ gsutil cp gs://<bucket_name>/docker-compose/<primary_yaml> .
42
+ gsutil cp gs://<bucket_name>/docker-compose/<backup_yaml> .
42
43
 
43
44
  # Pull Primary Containers and start them (faster service availability)
44
45
  docker-compose pull -p <app_name> -f <primary_yaml>
@@ -49,6 +50,7 @@ docker-compose pull -p <app_name> -f <backup_yaml>
49
50
  docker-compose up -p <app_name> -f <backup_yaml> -d
50
51
  EOF
51
52
 
53
+ dist = dist.gsub('<bucket_name>', @app_name)
52
54
  dist = dist.gsub('<app_name>', @app_name)
53
55
  dist = dist.gsub('<primary_yaml>', self.get_yaml_filename('primary', true))
54
56
  dist = dist.gsub('<backup_yaml>', self.get_yaml_filename('backup', true))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - VJ Patel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-14 00:00:00.000000000 Z
11
+ date: 2015-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gcloud