flex_config 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/flex_config.rb +6 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 811fde1a438c18fc2c95970bbdaf626b7f76860d
4
- data.tar.gz: 71cc4270fcbcf22a599cb0eac71fa0e2603a2a37
3
+ metadata.gz: 492b688111180e1e7964f43b67b03e7494c7b72a
4
+ data.tar.gz: 14ee3e8b0884af9c38eb6294389714be3f5c15cf
5
5
  SHA512:
6
- metadata.gz: 6fc9ed677167d85756087eddfbdfdf10b6e93a8fd9890bb3c5855e4ccffb2ee97fe176f3f0024ac45032a48d79fc9f06a072274ed46eff3726e85020155fe0dd
7
- data.tar.gz: ba35872fc568ce33460b0798eb20f6c551be39892bc96fa529a0a721eba932bd2bb8452ed350bf8ece8a048474ccc1221d2b6f2955bfd9bc565bceadbd30f7ad
6
+ metadata.gz: 9be5b50da2bfdfae2c0441a6284cc7a7806bee1f9f45c995907aff1519eb1bfa3cc4b26ac0a5f26d4c7d840bcac4e9a2e4bc1a0af021172d7371cb58992ed632
7
+ data.tar.gz: a80e68c6ce7de705b94242b154ca9c67b4d6e032458e57cbb4f169f3d2dce7202201179ba3c7f7ee697e8876fc38a92f40ce331a5e83cf7843cd898410f5268f
data/lib/flex_config.rb CHANGED
@@ -22,4 +22,10 @@ class FlexConfig
22
22
  output.close
23
23
 
24
24
  end
25
+
26
+ def get_config (path)
27
+ file_path = path + '/config.yml'
28
+
29
+ YAML::load(File.open(file_path, 'r'))
30
+ end
25
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flex_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Lai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-26 00:00:00.000000000 Z
11
+ date: 2016-02-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: To do
14
14
  email: ejt.lai@gmail.com