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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae1d9434be1802eefa535368f51e940b4b9930cb3ea45f65e3641d77f73e523c
4
- data.tar.gz: 23ee21c1b129404c809b8b68487b4e7f8040c4f5435f268e589135d13b945b96
3
+ metadata.gz: b0e34710ab960c6c70eceb1e6b81803a0e87e4145c955dd70e7e8f230c9218b7
4
+ data.tar.gz: 13218f2f1645731c40f329516e5374079c6436ed030267f5c9f1991a8c3b7ba4
5
5
  SHA512:
6
- metadata.gz: 8926d2ea3128193406fc82d3c97a3d0e40f803d86b4b73f658716fb4e128e717c0a073e23f012d66c437835f85ac6a539626b15ed47982d19857a927d34388e6
7
- data.tar.gz: 190ed66fedd153f1c023f60212266a461585665efcd6c6196e85b589ab67f7ba1c3bdbe18d730fb97052dc3a63bf67cfd0fe40d3224f1059416bc302c4bac940
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, :source
3
+ attr_accessor :name
4
+ attr_reader :source_path
4
5
 
5
- def initialize(name, source)
6
- @name = name
7
- @source = source
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
@@ -1,3 +1,3 @@
1
1
  module AppBuilder
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - i2bskn