bbc-cosmos-tools 0.4.4 → 0.4.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/README.md +22 -0
- data/lib/bbc/cosmos/tools/types/yaml.rb +1 -1
- data/lib/bbc/cosmos/tools/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ffd6586b8e0df138ffc16aa1c8ea7fb976a0fa93
|
|
4
|
+
data.tar.gz: 2fdf915a7f7b014d3ce42473c416591f56b363ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c8e815d9b8d731df2188e2e5c6decf11126649eeaf345bafa6762c69ced220f3275870f73a1b2fe806a1b5f5ff881cfc90763d4e2d5919e48a70ad0f63836f8
|
|
7
|
+
data.tar.gz: 5c2ba8dbe655e15733583db6681e5cb96f088ab750b19c75695e1910213c5e024d20f5f715fcb1d66c567e65732e46876f86b3b8996581ef1da9137b5ead9dff
|
data/README.md
CHANGED
|
@@ -104,6 +104,28 @@ e.g. if the resource was `AWS::SQS::Queue` then this file would be named `queue.
|
|
|
104
104
|
└── {stack}.{yaml|json}
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
+
### Quick directory creation
|
|
108
|
+
|
|
109
|
+
A quick way to create the YAML/JSON directory structure is shown below:
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
function setup() {
|
|
113
|
+
local component_name=$1
|
|
114
|
+
local type=$2
|
|
115
|
+
|
|
116
|
+
mkdir {configs,resources,stacks}
|
|
117
|
+
mkdir resources/{int,test,live}
|
|
118
|
+
mkdir stacks/$component_name
|
|
119
|
+
|
|
120
|
+
touch configs/$component_name.yaml.erb \
|
|
121
|
+
resources/{int,test,live}/$component_name.yaml \
|
|
122
|
+
stacks/$component_name/main.$type
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
setup foobar yaml
|
|
126
|
+
setup bazqux json
|
|
127
|
+
```
|
|
128
|
+
|
|
107
129
|
## File structure explained
|
|
108
130
|
|
|
109
131
|
The file structure required by the BBC Cosmos CLI Tool can be confusing so let’s break it down into sections so we can better understand the purpose of each directory:
|
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.4.
|
|
4
|
+
version: 0.4.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steven Jack
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-11-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
146
146
|
version: '0'
|
|
147
147
|
requirements: []
|
|
148
148
|
rubyforge_project:
|
|
149
|
-
rubygems_version: 2.
|
|
149
|
+
rubygems_version: 2.0.14
|
|
150
150
|
signing_key:
|
|
151
151
|
specification_version: 4
|
|
152
152
|
summary: Tool for pusing config to cosmos and controlling cloudformation templates
|