ruby_yacht 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/TODO.md +0 -4
- data/lib/ruby_yacht/dsl/configuration.rb +3 -1
- data/lib/ruby_yacht/dsl/dsl.rb +2 -2
- data/lib/ruby_yacht/dsl/project.rb +7 -3
- data/lib/ruby_yacht/dsl.rb +1 -1
- data/ruby_yacht.gemspec +2 -2
- metadata +21 -13
- checksums.yaml +0 -7
data/doc/TODO.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require_relative 'project'
|
2
|
+
|
1
3
|
module RubyYacht
|
2
4
|
# This class stores the configuration for the system.
|
3
5
|
#
|
@@ -30,7 +32,7 @@ module RubyYacht
|
|
30
32
|
# This takes the project name as its first argument. It also takes a block
|
31
33
|
# which you can use to configure the project, using
|
32
34
|
# RubyYacht::Project::DSL.
|
33
|
-
add_object_list :project,
|
35
|
+
add_object_list :project, RubyYacht::Project::DSL
|
34
36
|
|
35
37
|
creates_object Configuration
|
36
38
|
end
|
data/lib/ruby_yacht/dsl/dsl.rb
CHANGED
@@ -141,7 +141,7 @@ module RubyYacht
|
|
141
141
|
end
|
142
142
|
add_generic_attribute name, name, nil, options[:required] do |*args, &config_block|
|
143
143
|
variable_name = "@#{name}"
|
144
|
-
object_config =
|
144
|
+
object_config = type.new(*args)
|
145
145
|
value = object_config.run(config_block).create_object
|
146
146
|
instance_variable_set(variable_name, value)
|
147
147
|
end
|
@@ -163,7 +163,7 @@ module RubyYacht
|
|
163
163
|
add_generic_attribute name, "#{name}s", [], false do |*args, &config_block|
|
164
164
|
variable_name = "@#{name}s"
|
165
165
|
list = instance_variable_get(variable_name)
|
166
|
-
object_config =
|
166
|
+
object_config = type.new(*args)
|
167
167
|
value = object_config.run(config_block).create_object
|
168
168
|
list << value
|
169
169
|
instance_variable_set(variable_name, list)
|
@@ -1,3 +1,7 @@
|
|
1
|
+
require_relative 'dns_server'
|
2
|
+
require_relative 'app'
|
3
|
+
require_relative 'database'
|
4
|
+
|
1
5
|
module RubyYacht
|
2
6
|
# This class provides a configuration for a project in our system.
|
3
7
|
#
|
@@ -112,7 +116,7 @@ module RubyYacht
|
|
112
116
|
# You can call `app 'mars'` to add an app called `mars`. This takes a
|
113
117
|
# block for configuring the app, which allows you to call methods in
|
114
118
|
# RubyYacht::App::DSL
|
115
|
-
add_object_list :app,
|
119
|
+
add_object_list :app, RubyYacht::App::DSL
|
116
120
|
|
117
121
|
##
|
118
122
|
# :method: database
|
@@ -122,7 +126,7 @@ module RubyYacht
|
|
122
126
|
# call methods in RubyYacht::Database::DSL
|
123
127
|
#
|
124
128
|
# You must call this in your project config.
|
125
|
-
add_object :database,
|
129
|
+
add_object :database, RubyYacht::Database::DSL
|
126
130
|
|
127
131
|
##
|
128
132
|
# :method: dns_server
|
@@ -132,7 +136,7 @@ module RubyYacht
|
|
132
136
|
# call methods in RubyYacht::DnsServer::DSL
|
133
137
|
#
|
134
138
|
# This is optional.
|
135
|
-
add_object :dns_server,
|
139
|
+
add_object :dns_server, RubyYacht::DnsServer::DSL, required: false
|
136
140
|
|
137
141
|
creates_object Project
|
138
142
|
end
|
data/lib/ruby_yacht/dsl.rb
CHANGED
data/ruby_yacht.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'ruby_yacht'
|
3
|
-
spec.version = '0.1.
|
4
|
-
spec.date = '2016-04-
|
3
|
+
spec.version = '0.1.1'
|
4
|
+
spec.date = '2016-04-17'
|
5
5
|
spec.summary = "A DSL for building docker containers for a family of Rails apps"
|
6
6
|
spec.authors = ["John Brownlee"]
|
7
7
|
spec.email = 'apps@mail.johnbrownlee.com'
|
metadata
CHANGED
@@ -1,55 +1,62 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_yacht
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- John Brownlee
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
12
|
+
date: 2016-04-17 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rspec
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- - '>='
|
19
|
+
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: '0'
|
20
22
|
type: :development
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- - '>='
|
27
|
+
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '0'
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: codeclimate-test-reporter
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
|
-
- - '>='
|
35
|
+
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
33
37
|
version: '0'
|
34
38
|
type: :development
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
|
-
- - '>='
|
43
|
+
- - ! '>='
|
39
44
|
- !ruby/object:Gem::Version
|
40
45
|
version: '0'
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: timecop
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
|
-
- - '>='
|
51
|
+
- - ! '>='
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: '0'
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
|
-
- - '>='
|
59
|
+
- - ! '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
62
|
description:
|
@@ -141,26 +148,27 @@ files:
|
|
141
148
|
homepage: https://github.com/brownleej/ruby-yacht
|
142
149
|
licenses:
|
143
150
|
- MIT
|
144
|
-
metadata: {}
|
145
151
|
post_install_message:
|
146
152
|
rdoc_options: []
|
147
153
|
require_paths:
|
148
154
|
- lib
|
149
155
|
required_ruby_version: !ruby/object:Gem::Requirement
|
156
|
+
none: false
|
150
157
|
requirements:
|
151
|
-
- - '>='
|
158
|
+
- - ! '>='
|
152
159
|
- !ruby/object:Gem::Version
|
153
160
|
version: '0'
|
154
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
|
+
none: false
|
155
163
|
requirements:
|
156
|
-
- - '>='
|
164
|
+
- - ! '>='
|
157
165
|
- !ruby/object:Gem::Version
|
158
166
|
version: '0'
|
159
167
|
requirements: []
|
160
168
|
rubyforge_project:
|
161
|
-
rubygems_version:
|
169
|
+
rubygems_version: 1.8.23
|
162
170
|
signing_key:
|
163
|
-
specification_version:
|
171
|
+
specification_version: 3
|
164
172
|
summary: A DSL for building docker containers for a family of Rails apps
|
165
173
|
test_files:
|
166
174
|
- spec/docker/Dockerfile
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: a302fc38e6b97d51508e36cb73ea922e299bf8bd
|
4
|
-
data.tar.gz: 2fb309ba900f7c13ddffbd8cd893e4c26dc292cc
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: aa721cc442cd0313674a327c89012212ce41b3c9847b901f212005b44cee277992b212c4e3647d0c752700aaced9d8c1aa92f16816b0286d7cbba9d79539f1c7
|
7
|
-
data.tar.gz: 5c67d5a6999c57a20f9b0825c4dad28e4ee2e50ba8eed3878b92195c8104c214f9aaac25dad74fe234c322163a14b1fa3601bb552c817eb16d390b232de48d9f
|