app_builder 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/app_builder/environment.rb +9 -4
- data/lib/app_builder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0e34710ab960c6c70eceb1e6b81803a0e87e4145c955dd70e7e8f230c9218b7
|
4
|
+
data.tar.gz: 13218f2f1645731c40f329516e5374079c6436ed030267f5c9f1991a8c3b7ba4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2642b87c719e53a0c0d5d687939cdbfab2a840eada43362788a5d3c35d1fe0b773f5c08b52da71421716b13e4ffc08db1413e8ed30fa16256acdd8abb241fdd3
|
7
|
+
data.tar.gz: b6fa552d40830e0e120ffb9629487249ecf372e582c5c8dc8b03e6b547fac46c8f3079cd5ba2f4590ee365337ead4cd013952155e58eee103f94d9775875f26d
|
@@ -1,10 +1,11 @@
|
|
1
1
|
module AppBuilder
|
2
2
|
class Environment
|
3
|
-
attr_accessor :name
|
3
|
+
attr_accessor :name
|
4
|
+
attr_reader :source_path
|
4
5
|
|
5
|
-
def initialize(name,
|
6
|
-
@name
|
7
|
-
@
|
6
|
+
def initialize(name, source_path)
|
7
|
+
@name = name
|
8
|
+
@source_path = source_path
|
8
9
|
end
|
9
10
|
|
10
11
|
def create_file(template_path, output_path)
|
@@ -19,5 +20,9 @@ module AppBuilder
|
|
19
20
|
klass.define_method(:env) { env }
|
20
21
|
}.instance_eval { binding }
|
21
22
|
end
|
23
|
+
|
24
|
+
def source
|
25
|
+
@source ||= YAML.load_file(source_path)
|
26
|
+
end
|
22
27
|
end
|
23
28
|
end
|
data/lib/app_builder/version.rb
CHANGED