bbc-cosmos-tools 0.8.1 → 0.9.0

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: 24f317d2a990335a077f7b7721b2111527ed6a0d
4
- data.tar.gz: 62d85ae9ee1ef88e4b58467266bce0584ab34408
3
+ metadata.gz: 86d748e15e3d89809c446d9fb3fbccf477f5f75b
4
+ data.tar.gz: ec3fcb8bbc00b3f54682f0e6123357245039b199
5
5
  SHA512:
6
- metadata.gz: 091548ded09eb18f11c45b2005a34a963f1674b16370455c795617be2c97e15bf06adbb9f12955f0b54c5c101b32a4b739e15df01760b7e97d40d2241a0de883
7
- data.tar.gz: 05d0c3c58121c36278159e2c57cd9b426f5caa757240e208ebf5b9194d46c60e56b39c30d0bc1c595e0c4e70b77d14f87855975149acc251e0dbfa8b7032c010
6
+ metadata.gz: 9fcfd871e9d74d5808f37784acdaefc4cf054b4f56bcd39edb473fe4428cbb7ab2cf16d1e4c3cf647c33e8664a440c34d629d3a5cc149373836faa6ca4da1230
7
+ data.tar.gz: a6a2fd640873ff78acb784416353bb935ee5e7daf2d978bed85621d1d36fba624b55f539de0e86d61708a3ac0f2496b205231a667dff7f26ff50f770e350689e
data/README.md CHANGED
@@ -4,6 +4,7 @@
4
4
  - [Example commands](#example-commands)
5
5
  - [Project directory structure](#project-directory-structure)
6
6
  - [File structure explained](#file-structure-explained)
7
+ - [Using YAML or JSON](#using-yaml-or-json)
7
8
  - [Example repositories](#example-repositories)
8
9
 
9
10
  ## Introduction
@@ -381,6 +382,30 @@ bbc-cosmos-tools release deploy <component> --project=<project> --from=X --env=Y
381
382
 
382
383
  Use the same commands as above but make sure to include a `--type={yaml|json}`. If it's not specified then `cfndsl` is assumed as the default (almost as if you had written `--type=cfndsl`, but it's clearer to just remove the flag in that instance).
383
384
 
385
+ ```
386
+ .
387
+ ├── configs
388
+ │   ├── app.yaml
389
+ │   └── foo.yaml.erb
390
+ ├── resources
391
+ │   ├── int
392
+ │   │   └── bar.yaml
393
+ │   ├── live
394
+ │   │   └── bar.yaml
395
+ │   └── test
396
+ │   └── bar.yaml
397
+ └── stacks
398
+ └── foo
399
+ ├── dns.yaml
400
+ ├── main.yaml
401
+ ```
402
+
403
+ To update the DNS stack in the live environment, you would execute:
404
+
405
+ ```bash
406
+ bbc-cosmos-tools stack update foo --project=bar --env=live --type=yaml --stack=dns
407
+ ```
408
+
384
409
  ## Example repositories
385
410
 
386
411
  There are a few example projects using this tool now:
@@ -94,6 +94,7 @@ module BBC
94
94
  }
95
95
 
96
96
  post_data["aws_account_id"] = stack_data["account_id"] unless stack_data["account_id"].nil?
97
+ post_data["region"] = stack_data["region"] unless stack_data["region"].nil?
97
98
  response = api.post sprintf(config.app["stack_create_endpoint"], options[:env], id), JSON.pretty_generate(post_data)
98
99
 
99
100
  if response.success?
@@ -180,7 +181,7 @@ module BBC
180
181
  "parameters" => params || {}
181
182
  }
182
183
  ###
183
-
184
+
184
185
  if response.success?
185
186
  original_template = JSON.parse(response.body)
186
187
 
@@ -1,7 +1,7 @@
1
1
  module BBC
2
2
  module Cosmos
3
3
  module Tools
4
- VERSION = "0.8.1"
4
+ VERSION = "0.9.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbc-cosmos-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Jack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-28 00:00:00.000000000 Z
11
+ date: 2016-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler