awful 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/awful.rb +2 -2
- data/lib/awful/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c3c3f308afeedec0d4062123c7866216c70e7ab
|
4
|
+
data.tar.gz: 7e47dafe01e7ca56f2422316c0e45c0fb04de498
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b56c90f105bca387670e4186395cd90abf3ccfa3b18fab280372d299253253b74651fbdd711309390bca00f1201af83860ac1f6c140de948db2ac3f503ed9ed
|
7
|
+
data.tar.gz: 07fb00bdc2e4e5a702d3b74cccfd6321afb5c622ff0fd27dfd23251b3e2906ee45ef1bd354558f74a6468013de1dfc4a8282d1c80e443175e2a2389fd5021f1e
|
data/lib/awful.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
require "awful/version"
|
2
2
|
|
3
|
+
require 'dotenv'
|
3
4
|
require 'aws-sdk'
|
4
5
|
require 'thor'
|
5
6
|
require 'yaml'
|
6
7
|
require 'erb'
|
7
|
-
require 'dotenv'
|
8
8
|
|
9
9
|
module Awful
|
10
10
|
class Cli < Thor
|
@@ -48,7 +48,7 @@ module Awful
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def load_cfg(options = {}, file = nil)
|
51
|
-
Dotenv.
|
51
|
+
Dotenv.overload(options[:env]) if options[:env]
|
52
52
|
src = (file and File.read(file)) || ((not $stdin.tty?) and $stdin.read)
|
53
53
|
cfg = src ? YAML.load(::ERB.new(src).result(binding)) : {}
|
54
54
|
symbolize_keys(cfg).merge(symbolize_keys(options.reject{ |_,v| v.nil? }))
|
data/lib/awful/version.rb
CHANGED