lono 1.1.3 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitmodules +3 -0
- data/CHANGELOG.md +8 -0
- data/README.md +150 -39
- data/bin/lono +2 -2
- data/circle.yml +4 -0
- data/lib/lono.rb +16 -7
- data/lib/lono/cfn.rb +64 -0
- data/lib/lono/cfn/aws_services.rb +37 -0
- data/lib/lono/cfn/base.rb +144 -0
- data/lib/lono/cfn/create.rb +34 -0
- data/lib/lono/cfn/delete.rb +26 -0
- data/lib/lono/cfn/diff.rb +43 -0
- data/lib/lono/cfn/help.rb +93 -0
- data/lib/lono/cfn/preview.rb +133 -0
- data/lib/lono/cfn/update.rb +62 -0
- data/lib/lono/cfn/util.rb +21 -0
- data/lib/lono/cli.rb +19 -10
- data/lib/lono/command.rb +25 -0
- data/lib/lono/help.rb +59 -0
- data/lib/lono/new.rb +3 -2
- data/lib/lono/param.rb +20 -0
- data/lib/lono/param/generator.rb +90 -0
- data/lib/lono/param/help.rb +15 -0
- data/lib/lono/project_checker.rb +44 -0
- data/lib/lono/template.rb +22 -248
- data/lib/lono/template/bashify.rb +39 -0
- data/lib/lono/template/dsl.rb +139 -0
- data/lib/lono/template/help.rb +25 -0
- data/lib/lono/template/template.rb +251 -0
- data/lib/lono/version.rb +1 -1
- data/lib/{starter_project_yaml → starter_projects/json_project}/Gemfile +0 -1
- data/lib/{starter_project_json → starter_projects/json_project}/Guardfile +0 -0
- data/lib/{starter_project_json → starter_projects/json_project}/config/lono.rb +0 -0
- data/lib/{starter_project_json → starter_projects/json_project}/config/lono/api.rb +0 -0
- data/lib/starter_projects/json_project/params/api-web-prod.txt +20 -0
- data/lib/{starter_project_json → starter_projects/json_project}/templates/db.json.erb +0 -0
- data/lib/{starter_project_json → starter_projects/json_project}/templates/partial/host_record.json.erb +0 -0
- data/lib/{starter_project_json → starter_projects/json_project}/templates/partial/server.json.erb +0 -0
- data/lib/{starter_project_json → starter_projects/json_project}/templates/user_data/app.sh.erb +0 -0
- data/lib/{starter_project_json → starter_projects/json_project}/templates/user_data/db.sh.erb +0 -0
- data/lib/{starter_project_json → starter_projects/json_project}/templates/user_data/db2.sh.erb +0 -0
- data/lib/{starter_project_json → starter_projects/json_project}/templates/user_data/ruby_script.rb.erb +0 -0
- data/lib/{starter_project_json → starter_projects/json_project}/templates/web.json.erb +0 -0
- data/lib/{starter_project_json → starter_projects/yaml_project}/Gemfile +0 -1
- data/lib/{starter_project_yaml → starter_projects/yaml_project}/Guardfile +0 -0
- data/lib/{starter_project_yaml → starter_projects/yaml_project}/config/lono.rb +0 -0
- data/lib/{starter_project_yaml → starter_projects/yaml_project}/config/lono/api.rb +0 -0
- data/lib/starter_projects/yaml_project/params/api-web-prod.txt +20 -0
- data/lib/{starter_project_yaml → starter_projects/yaml_project}/templates/db.yml.erb +0 -0
- data/lib/{starter_project_yaml → starter_projects/yaml_project}/templates/partial/host_record.yml.erb +0 -0
- data/lib/{starter_project_yaml → starter_projects/yaml_project}/templates/partial/server.yml.erb +0 -0
- data/lib/{starter_project_yaml → starter_projects/yaml_project}/templates/partial/user_data/bootstrap.sh.erb +0 -0
- data/lib/{starter_project_yaml → starter_projects/yaml_project}/templates/web.yml.erb +0 -0
- data/lono.gemspec +15 -10
- data/spec/fixtures/my_project/config/lono.rb +1 -0
- data/spec/fixtures/my_project/params/my-stack.txt +3 -0
- data/spec/fixtures/my_project/templates/.gitkeep +0 -0
- data/spec/fixtures/my_project/templates/my-stack.yml.erb +0 -0
- data/spec/lib/lono/cfn_spec.rb +35 -0
- data/spec/lib/lono/new_spec.rb +3 -3
- data/spec/lib/lono/param_spec.rb +15 -0
- data/spec/lib/lono/{dsl_spec.rb → template/dsl_spec.rb} +9 -9
- data/spec/lib/lono/template/template_spec.rb +104 -0
- data/spec/lib/lono/template_spec.rb +22 -37
- data/spec/lib/lono_spec.rb +6 -83
- data/vendor/plissken/Gemfile +14 -0
- data/vendor/plissken/LICENSE.txt +20 -0
- data/vendor/plissken/README.md +46 -0
- data/vendor/plissken/Rakefile +56 -0
- data/vendor/plissken/VERSION +1 -0
- data/vendor/plissken/lib/plissken.rb +1 -0
- data/vendor/plissken/lib/plissken/ext/hash/to_snake_keys.rb +45 -0
- data/vendor/plissken/plissken.gemspec +61 -0
- data/vendor/plissken/spec/lib/to_snake_keys_spec.rb +177 -0
- data/vendor/plissken/spec/spec_helper.rb +90 -0
- data/vendor/plissken/test/helper.rb +20 -0
- data/vendor/plissken/test/plissken/ext/hash/to_snake_keys_test.rb +184 -0
- data/vendor/plissken/test/test_plissken.rb +2 -0
- metadata +115 -39
- data/lib/lono/bashify.rb +0 -41
- data/lib/lono/cli/help.rb +0 -37
- data/lib/lono/dsl.rb +0 -132
@@ -0,0 +1,90 @@
|
|
1
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
+
# The generated `.rspec` file contains `--require spec_helper`
|
4
|
+
# which will cause this file to always be loaded,
|
5
|
+
# without a need to explicitly require it in any files.
|
6
|
+
#
|
7
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
8
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
9
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
10
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
11
|
+
# a separate helper file that requires the additional dependencies and performs
|
12
|
+
# the additional setup, and require it from the spec
|
13
|
+
# files that actually need it.
|
14
|
+
#
|
15
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
16
|
+
# users commonly want.
|
17
|
+
#
|
18
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
19
|
+
RSpec.configure do |config|
|
20
|
+
# rspec-expectations config goes here. You can use an alternate
|
21
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
22
|
+
# assertions if you prefer.
|
23
|
+
config.expect_with :rspec do |expectations|
|
24
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
25
|
+
# and `failure_message` of custom matchers include text for helper methods
|
26
|
+
# defined using `chain`, e.g.:
|
27
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
28
|
+
# # => "be bigger than 2 and smaller than 4"
|
29
|
+
# ...rather than:
|
30
|
+
# # => "be bigger than 2"
|
31
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
32
|
+
end
|
33
|
+
|
34
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
35
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
36
|
+
config.mock_with :rspec do |mocks|
|
37
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
38
|
+
# a real object. This is generally recommended, and will default to
|
39
|
+
# `true` in RSpec 4.
|
40
|
+
mocks.verify_partial_doubles = true
|
41
|
+
end
|
42
|
+
|
43
|
+
# The settings below are suggested to provide a good initial experience
|
44
|
+
# with RSpec, but feel free to customize to your heart's content.
|
45
|
+
# # These two settings work together to allow you to limit a spec run
|
46
|
+
# # to individual examples or groups you care about by tagging them with
|
47
|
+
# # `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
48
|
+
# # get run.
|
49
|
+
# config.filter_run :focus
|
50
|
+
# config.run_all_when_everything_filtered = true
|
51
|
+
#
|
52
|
+
# # Limits the available syntax to the non-monkey
|
53
|
+
# patched syntax that is recommended.
|
54
|
+
# # For more details, see:
|
55
|
+
#
|
56
|
+
# config.disable_monkey_patching!
|
57
|
+
#
|
58
|
+
# # This setting enables warnings. It's recommended, but in some cases may
|
59
|
+
# # be too noisy due to issues in dependencies.
|
60
|
+
# config.warnings = true
|
61
|
+
#
|
62
|
+
# # Many RSpec users commonly either run the entire suite or an individual
|
63
|
+
# # file, and it's useful to allow more verbose output when running an
|
64
|
+
# # individual spec file.
|
65
|
+
# if config.files_to_run.one?
|
66
|
+
# # Use the documentation formatter for detailed output,
|
67
|
+
# # unless a formatter has already been configured
|
68
|
+
# # (e.g. via a command-line flag).
|
69
|
+
# config.default_formatter = 'doc'
|
70
|
+
# end
|
71
|
+
#
|
72
|
+
# # Print the 10 slowest examples and example groups at the
|
73
|
+
# # end of the spec run, to help surface which specs are running
|
74
|
+
# # particularly slow.
|
75
|
+
# config.profile_examples = 10
|
76
|
+
#
|
77
|
+
# # Run specs in random order to surface order dependencies. If you find an
|
78
|
+
# # order dependency and want to debug it,
|
79
|
+
# you can fix the order by providing
|
80
|
+
# # the seed, which is printed after each run.
|
81
|
+
# # --seed 1234
|
82
|
+
# config.order = :random
|
83
|
+
#
|
84
|
+
# # Seed global randomization in this process using the `--seed` CLI option.
|
85
|
+
# # Setting this allows you to use `--seed` to deterministically reproduce
|
86
|
+
# # test failures related to randomization by
|
87
|
+
# # passing the same `--seed` value
|
88
|
+
# # as the one that triggered the failure.
|
89
|
+
# Kernel.srand config.seed
|
90
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts 'Run `bundle install` to install missing gems'
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'minitest/spec'
|
11
|
+
# require 'debugger'
|
12
|
+
|
13
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
14
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
15
|
+
require 'plissken'
|
16
|
+
|
17
|
+
class MiniTest::Unit::TestCase
|
18
|
+
end
|
19
|
+
|
20
|
+
MiniTest::Unit.autorun
|
@@ -0,0 +1,184 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../../test_plissken.rb')
|
2
|
+
|
3
|
+
describe 'A Hash' do
|
4
|
+
describe 'with camelBack keys' do
|
5
|
+
describe 'which are JSON-style strings' do
|
6
|
+
describe 'in the simplest case' do
|
7
|
+
before do
|
8
|
+
@hash = { 'firstKey' => 'fooBar' }
|
9
|
+
end
|
10
|
+
|
11
|
+
describe 'non-destructive snakification' do
|
12
|
+
before do
|
13
|
+
@snaked = @hash.to_snake_keys
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'snakifies the key' do
|
17
|
+
assert_equal(@snaked.keys.first, 'first_key')
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'leaves the key as a string' do
|
21
|
+
assert_equal('first_key', @snaked.keys.first)
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'leaves the value untouched' do
|
25
|
+
assert_equal(@snaked.values.first, 'fooBar')
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'leaves the original hash untouched' do
|
29
|
+
assert_equal(@hash.keys.first, 'firstKey')
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'containing an array of other hashes' do
|
35
|
+
before do
|
36
|
+
@hash = {
|
37
|
+
'appleType' => 'Granny Smith',
|
38
|
+
'vegetableTypes' => [
|
39
|
+
{ 'potatoType' => 'Golden delicious' },
|
40
|
+
{ 'otherTuberType' => 'peanut' },
|
41
|
+
{ 'peanutNamesAndSpouses' => [
|
42
|
+
{ 'billThePeanut' => 'sallyPeanut' },
|
43
|
+
{ 'sammyThePeanut' => 'jillPeanut' }
|
44
|
+
] }
|
45
|
+
] }
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'non-destructive snakification' do
|
49
|
+
before do
|
50
|
+
@snaked = @hash.to_snake_keys
|
51
|
+
end
|
52
|
+
|
53
|
+
it 'recursively snakifies the keys on the top level of the hash' do
|
54
|
+
assert @snaked.keys.include?('apple_type')
|
55
|
+
assert @snaked.keys.include?('vegetable_types')
|
56
|
+
end
|
57
|
+
|
58
|
+
it 'leaves the values on the top level alone' do
|
59
|
+
assert_equal(@snaked['apple_type'], 'Granny Smith')
|
60
|
+
end
|
61
|
+
|
62
|
+
it 'converts second-level keys' do
|
63
|
+
assert @snaked['vegetable_types'].first.key? 'potato_type'
|
64
|
+
end
|
65
|
+
|
66
|
+
it 'leaves second-level values alone' do
|
67
|
+
assert @snaked['vegetable_types'].first.value? 'Golden delicious'
|
68
|
+
end
|
69
|
+
|
70
|
+
it 'converts third-level keys' do
|
71
|
+
assert @snaked['vegetable_types'].last['peanut_names_and_spouses']
|
72
|
+
.first.key?('bill_the_peanut')
|
73
|
+
assert @snaked['vegetable_types'].last['peanut_names_and_spouses']
|
74
|
+
.last.key?('sammy_the_peanut')
|
75
|
+
end
|
76
|
+
|
77
|
+
it 'leaves third-level values alone' do
|
78
|
+
assert_equal 'sallyPeanut', @snaked['vegetable_types']
|
79
|
+
.last['peanut_names_and_spouses']
|
80
|
+
.first['bill_the_peanut']
|
81
|
+
assert_equal 'jillPeanut', @snaked['vegetable_types']
|
82
|
+
.last['peanut_names_and_spouses']
|
83
|
+
.last['sammy_the_peanut']
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
describe 'which are symbols' do
|
90
|
+
describe 'in the simplest case' do
|
91
|
+
before do
|
92
|
+
@hash = { :firstKey => 'fooBar' }
|
93
|
+
end
|
94
|
+
|
95
|
+
describe 'non-destructive snakification' do
|
96
|
+
before do
|
97
|
+
@snaked = @hash.to_snake_keys
|
98
|
+
end
|
99
|
+
|
100
|
+
it 'snakifies the key' do
|
101
|
+
assert_equal(@snaked.keys.first, :first_key)
|
102
|
+
end
|
103
|
+
|
104
|
+
it 'leaves the key as a symbol' do
|
105
|
+
assert_equal(:first_key, @snaked.keys.first)
|
106
|
+
end
|
107
|
+
|
108
|
+
it 'leaves the value untouched' do
|
109
|
+
assert_equal(@snaked.values.first, 'fooBar')
|
110
|
+
end
|
111
|
+
|
112
|
+
it 'leaves the original hash untouched' do
|
113
|
+
assert_equal(@hash.keys.first, :firstKey)
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
describe 'containing an array of other hashes' do
|
119
|
+
before do
|
120
|
+
@hash = {
|
121
|
+
:appleType => 'Granny Smith',
|
122
|
+
:vegetableTypes => [
|
123
|
+
{ :potatoType => 'Golden delicious' },
|
124
|
+
{ :otherTuberType => 'peanut' },
|
125
|
+
{ :peanutNamesAndSpouses => [
|
126
|
+
{ :billThePeanut => 'sallyPeanut' },
|
127
|
+
{ :sammyThePeanut => 'jillPeanut' }
|
128
|
+
] }
|
129
|
+
] }
|
130
|
+
end
|
131
|
+
|
132
|
+
describe 'non-destructive snakification' do
|
133
|
+
before do
|
134
|
+
@snaked = @hash.to_snake_keys
|
135
|
+
end
|
136
|
+
|
137
|
+
it 'recursively snakifies the keys on the top level of the hash' do
|
138
|
+
assert @snaked.keys.include?(:apple_type)
|
139
|
+
assert @snaked.keys.include?(:vegetable_types)
|
140
|
+
end
|
141
|
+
|
142
|
+
it 'leaves the values on the top level alone' do
|
143
|
+
assert_equal(@snaked[:apple_type], 'Granny Smith')
|
144
|
+
end
|
145
|
+
|
146
|
+
it 'converts second-level keys' do
|
147
|
+
assert @snaked[:vegetable_types].first.key? :potato_type
|
148
|
+
end
|
149
|
+
|
150
|
+
it 'leaves second-level values alone' do
|
151
|
+
assert @snaked[:vegetable_types].first.value? 'Golden delicious'
|
152
|
+
end
|
153
|
+
|
154
|
+
it 'converts third-level keys' do
|
155
|
+
assert @snaked[:vegetable_types].last[:peanut_names_and_spouses]
|
156
|
+
.first.key?(:bill_the_peanut)
|
157
|
+
assert @snaked[:vegetable_types].last[:peanut_names_and_spouses]
|
158
|
+
.last.key?(:sammy_the_peanut)
|
159
|
+
end
|
160
|
+
|
161
|
+
it 'leaves third-level values alone' do
|
162
|
+
assert_equal 'sallyPeanut', @snaked[:vegetable_types]
|
163
|
+
.last[:peanut_names_and_spouses]
|
164
|
+
.first[:bill_the_peanut]
|
165
|
+
assert_equal 'jillPeanut', @snaked[:vegetable_types]
|
166
|
+
.last[:peanut_names_and_spouses]
|
167
|
+
.last[:sammy_the_peanut]
|
168
|
+
end
|
169
|
+
end
|
170
|
+
end
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
describe 'strings with spaces in them' do
|
175
|
+
before do
|
176
|
+
@hash = { 'With Spaces' => 'FooBar' }
|
177
|
+
@snaked = @hash.to_snake_keys
|
178
|
+
end
|
179
|
+
|
180
|
+
it "doesn't get snaked, although it does get downcased" do
|
181
|
+
assert @snaked.keys.include? 'with spaces'
|
182
|
+
end
|
183
|
+
end
|
184
|
+
end
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lono
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: thor
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: guard
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rb-fsevent
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: guard-cloudformation
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name: guard-
|
84
|
+
name: guard-lono
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -95,7 +95,7 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: colorize
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: hashie
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
@@ -123,7 +123,35 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: aws-sdk
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: byebug
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: guard-bundler
|
127
155
|
requirement: !ruby/object:Gem::Requirement
|
128
156
|
requirements:
|
129
157
|
- - ">="
|
@@ -151,7 +179,7 @@ dependencies:
|
|
151
179
|
- !ruby/object:Gem::Version
|
152
180
|
version: '0'
|
153
181
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
182
|
+
name: rake
|
155
183
|
requirement: !ruby/object:Gem::Requirement
|
156
184
|
requirements:
|
157
185
|
- - ">="
|
@@ -165,7 +193,7 @@ dependencies:
|
|
165
193
|
- !ruby/object:Gem::Version
|
166
194
|
version: '0'
|
167
195
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
196
|
+
name: rspec
|
169
197
|
requirement: !ruby/object:Gem::Requirement
|
170
198
|
requirements:
|
171
199
|
- - ">="
|
@@ -189,6 +217,7 @@ extra_rdoc_files: []
|
|
189
217
|
files:
|
190
218
|
- ".coveralls.yml"
|
191
219
|
- ".gitignore"
|
220
|
+
- ".gitmodules"
|
192
221
|
- ".rspec"
|
193
222
|
- ".ruby-version"
|
194
223
|
- ".travis.yml"
|
@@ -199,42 +228,82 @@ files:
|
|
199
228
|
- README.md
|
200
229
|
- Rakefile
|
201
230
|
- bin/lono
|
231
|
+
- circle.yml
|
202
232
|
- lib/lono.rb
|
203
|
-
- lib/lono/
|
233
|
+
- lib/lono/cfn.rb
|
234
|
+
- lib/lono/cfn/aws_services.rb
|
235
|
+
- lib/lono/cfn/base.rb
|
236
|
+
- lib/lono/cfn/create.rb
|
237
|
+
- lib/lono/cfn/delete.rb
|
238
|
+
- lib/lono/cfn/diff.rb
|
239
|
+
- lib/lono/cfn/help.rb
|
240
|
+
- lib/lono/cfn/preview.rb
|
241
|
+
- lib/lono/cfn/update.rb
|
242
|
+
- lib/lono/cfn/util.rb
|
204
243
|
- lib/lono/cli.rb
|
205
|
-
- lib/lono/
|
206
|
-
- lib/lono/
|
244
|
+
- lib/lono/command.rb
|
245
|
+
- lib/lono/help.rb
|
207
246
|
- lib/lono/new.rb
|
247
|
+
- lib/lono/param.rb
|
248
|
+
- lib/lono/param/generator.rb
|
249
|
+
- lib/lono/param/help.rb
|
250
|
+
- lib/lono/project_checker.rb
|
208
251
|
- lib/lono/template.rb
|
252
|
+
- lib/lono/template/bashify.rb
|
253
|
+
- lib/lono/template/dsl.rb
|
254
|
+
- lib/lono/template/help.rb
|
255
|
+
- lib/lono/template/template.rb
|
209
256
|
- lib/lono/version.rb
|
210
|
-
- lib/
|
211
|
-
- lib/
|
212
|
-
- lib/
|
213
|
-
- lib/
|
214
|
-
- lib/
|
215
|
-
- lib/
|
216
|
-
- lib/
|
217
|
-
- lib/
|
218
|
-
- lib/
|
219
|
-
- lib/
|
220
|
-
- lib/
|
221
|
-
- lib/
|
222
|
-
- lib/
|
223
|
-
- lib/
|
224
|
-
- lib/
|
225
|
-
- lib/
|
226
|
-
- lib/
|
227
|
-
- lib/
|
228
|
-
- lib/
|
229
|
-
- lib/
|
230
|
-
- lib/
|
257
|
+
- lib/starter_projects/json_project/Gemfile
|
258
|
+
- lib/starter_projects/json_project/Guardfile
|
259
|
+
- lib/starter_projects/json_project/config/lono.rb
|
260
|
+
- lib/starter_projects/json_project/config/lono/api.rb
|
261
|
+
- lib/starter_projects/json_project/params/api-web-prod.txt
|
262
|
+
- lib/starter_projects/json_project/templates/db.json.erb
|
263
|
+
- lib/starter_projects/json_project/templates/partial/host_record.json.erb
|
264
|
+
- lib/starter_projects/json_project/templates/partial/server.json.erb
|
265
|
+
- lib/starter_projects/json_project/templates/user_data/app.sh.erb
|
266
|
+
- lib/starter_projects/json_project/templates/user_data/db.sh.erb
|
267
|
+
- lib/starter_projects/json_project/templates/user_data/db2.sh.erb
|
268
|
+
- lib/starter_projects/json_project/templates/user_data/ruby_script.rb.erb
|
269
|
+
- lib/starter_projects/json_project/templates/web.json.erb
|
270
|
+
- lib/starter_projects/yaml_project/Gemfile
|
271
|
+
- lib/starter_projects/yaml_project/Guardfile
|
272
|
+
- lib/starter_projects/yaml_project/config/lono.rb
|
273
|
+
- lib/starter_projects/yaml_project/config/lono/api.rb
|
274
|
+
- lib/starter_projects/yaml_project/params/api-web-prod.txt
|
275
|
+
- lib/starter_projects/yaml_project/templates/db.yml.erb
|
276
|
+
- lib/starter_projects/yaml_project/templates/partial/host_record.yml.erb
|
277
|
+
- lib/starter_projects/yaml_project/templates/partial/server.yml.erb
|
278
|
+
- lib/starter_projects/yaml_project/templates/partial/user_data/bootstrap.sh.erb
|
279
|
+
- lib/starter_projects/yaml_project/templates/web.yml.erb
|
231
280
|
- lono.gemspec
|
232
281
|
- spec/fixtures/cfn.json
|
233
|
-
- spec/
|
282
|
+
- spec/fixtures/my_project/config/lono.rb
|
283
|
+
- spec/fixtures/my_project/params/my-stack.txt
|
284
|
+
- spec/fixtures/my_project/templates/.gitkeep
|
285
|
+
- spec/fixtures/my_project/templates/my-stack.yml.erb
|
286
|
+
- spec/lib/lono/cfn_spec.rb
|
234
287
|
- spec/lib/lono/new_spec.rb
|
288
|
+
- spec/lib/lono/param_spec.rb
|
289
|
+
- spec/lib/lono/template/dsl_spec.rb
|
290
|
+
- spec/lib/lono/template/template_spec.rb
|
235
291
|
- spec/lib/lono/template_spec.rb
|
236
292
|
- spec/lib/lono_spec.rb
|
237
293
|
- spec/spec_helper.rb
|
294
|
+
- vendor/plissken/Gemfile
|
295
|
+
- vendor/plissken/LICENSE.txt
|
296
|
+
- vendor/plissken/README.md
|
297
|
+
- vendor/plissken/Rakefile
|
298
|
+
- vendor/plissken/VERSION
|
299
|
+
- vendor/plissken/lib/plissken.rb
|
300
|
+
- vendor/plissken/lib/plissken/ext/hash/to_snake_keys.rb
|
301
|
+
- vendor/plissken/plissken.gemspec
|
302
|
+
- vendor/plissken/spec/lib/to_snake_keys_spec.rb
|
303
|
+
- vendor/plissken/spec/spec_helper.rb
|
304
|
+
- vendor/plissken/test/helper.rb
|
305
|
+
- vendor/plissken/test/plissken/ext/hash/to_snake_keys_test.rb
|
306
|
+
- vendor/plissken/test/test_plissken.rb
|
238
307
|
homepage: http://github.com/tongueroo/lono
|
239
308
|
licenses:
|
240
309
|
- MIT
|
@@ -262,8 +331,15 @@ summary: Lono is a CloudFormation Template ruby generator. Lono generates Cloud
|
|
262
331
|
templates based on ERB templates.
|
263
332
|
test_files:
|
264
333
|
- spec/fixtures/cfn.json
|
265
|
-
- spec/
|
334
|
+
- spec/fixtures/my_project/config/lono.rb
|
335
|
+
- spec/fixtures/my_project/params/my-stack.txt
|
336
|
+
- spec/fixtures/my_project/templates/.gitkeep
|
337
|
+
- spec/fixtures/my_project/templates/my-stack.yml.erb
|
338
|
+
- spec/lib/lono/cfn_spec.rb
|
266
339
|
- spec/lib/lono/new_spec.rb
|
340
|
+
- spec/lib/lono/param_spec.rb
|
341
|
+
- spec/lib/lono/template/dsl_spec.rb
|
342
|
+
- spec/lib/lono/template/template_spec.rb
|
267
343
|
- spec/lib/lono/template_spec.rb
|
268
344
|
- spec/lib/lono_spec.rb
|
269
345
|
- spec/spec_helper.rb
|