ops_preflight 1.0.0.pre2 → 1.1.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: 2700e4d89aea2944cbb49b31594b5b6b263c1b7e
4
- data.tar.gz: 2b47dac2763f3c6b0d458f657cdd5db8ea68cc02
3
+ metadata.gz: 666d43c874955d1493be54e9b0e12abab6d1a412
4
+ data.tar.gz: b9cb569e660bdbbdc4a2a2296b4655e619e9e495
5
5
  SHA512:
6
- metadata.gz: 3fb7c1ec9ec5e20e0706b66fc4d29f7d572352d3eda4b0e5b86f6ae62a640d9c014876465115d764ed303ba659d6c59ac5c351ea2bbe158ce3ef0046b22257db
7
- data.tar.gz: 6b9682faacfaedd126e4dd06c487c73f89b1dc947ff6a71c795e867050224aba62e435a685441174e92203813638af0c804641d83c339ce18ec4b12fc3069c04
6
+ metadata.gz: bee64f9f75df2e3c80303765b2647bed12cf5c6dfadc5cf3cd0228dde4565f3ac941a4e0e7c5e232b1f8bd3095cdcafb86601547b1581b44108739ca8f958a1f
7
+ data.tar.gz: 8ed0dd5b8928d34b9bc35b9954c3422de8bba2f07837704507343d69630c41853ab86e3952eb6c8cad1316f5a14d6ada9c4214c88da8c1300895701413a2bee2
@@ -1,3 +1,5 @@
1
+ require 'yaml'
2
+
1
3
  module OpsPreflight
2
4
  module OpsWorks
3
5
  require 'ops_preflight/ops_works/base'
@@ -20,13 +22,8 @@ module OpsPreflight
20
22
 
21
23
  json = MultiJson.load(resp[:stacks].first[:custom_json])
22
24
 
23
- str = ''
24
- json['env_vars'][app_name][environment].each do |var, value|
25
- str << "#{var.upcase}=#{value}\n"
26
- end
27
-
28
- File.open(".env.#{environment}", 'wb') do |f|
29
- f.write str
25
+ File.open("config/application.yml", 'wb') do |f|
26
+ f.write json['env_vars'][app_name].to_yaml
30
27
  end
31
28
  end
32
29
  end
@@ -1,3 +1,3 @@
1
1
  module OpsPreflight
2
- VERSION = "1.0.0.pre2"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops_preflight
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Schlesinger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-13 00:00:00.000000000 Z
11
+ date: 2014-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.18.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.18.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: fog
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.10'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.10'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mina
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.3.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.3.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: aws-sdk
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.33'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.33'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: multi_json
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '1.0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.0'
83
83
  description: Preflight and deploy applications
@@ -89,7 +89,7 @@ executables:
89
89
  extensions: []
90
90
  extra_rdoc_files: []
91
91
  files:
92
- - .gitignore
92
+ - ".gitignore"
93
93
  - Gemfile
94
94
  - LICENSE.txt
95
95
  - README.md
@@ -119,17 +119,17 @@ require_paths:
119
119
  - lib
120
120
  required_ruby_version: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  requirements:
127
- - - '>'
127
+ - - ">="
128
128
  - !ruby/object:Gem::Version
129
- version: 1.3.1
129
+ version: '0'
130
130
  requirements: []
131
131
  rubyforge_project:
132
- rubygems_version: 2.1.11
132
+ rubygems_version: 2.2.2
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: Preflight by packaging the bundle, precompiled assets, or anything else needed