bbc-cosmos-tools 0.4.4 → 0.4.5

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: c9f73c62ff74b961229432dd533a9ebd0bf8b025
4
- data.tar.gz: 3d456c48f0f1455b0f0ec8112ae2f3507203f4d0
3
+ metadata.gz: ffd6586b8e0df138ffc16aa1c8ea7fb976a0fa93
4
+ data.tar.gz: 2fdf915a7f7b014d3ce42473c416591f56b363ce
5
5
  SHA512:
6
- metadata.gz: 7da7d791f4eb7318141eb379f20d6cf6ac7a4da67a7744df2b90c583b0bbd1c90460e22c65a3dad726b4c24f58fca7596deb69e087f0cadf4dec5ff0e8b6d7dc
7
- data.tar.gz: f027c41e34a4eb9c50a0382c81cfe1b4d9d6ccdc60fc044f204eb71321dd83620c7d1b1f93cf5e4f76dc795daf5eca911374b0854e92d11fb18eb91ee560fa63
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:
@@ -8,7 +8,7 @@ module BBC
8
8
  protected
9
9
 
10
10
  def data
11
- YAML.load_file(construct_file_path "yaml")
11
+ @yaml ||= YAML.load_file(construct_file_path "yaml")
12
12
  end
13
13
  end
14
14
  end
@@ -1,7 +1,7 @@
1
1
  module BBC
2
2
  module Cosmos
3
3
  module Tools
4
- VERSION = "0.4.4"
4
+ VERSION = "0.4.5"
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.4.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-10-20 00:00:00.000000000 Z
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.2.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