summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-01-20 21:54:57 -0700
committermo khan <mo@mokhan.ca>2015-01-20 21:54:57 -0700
commitce17e75c579e8973583c59adfddaeab616f795fd (patch)
tree7d2c1bbf71bd0e360383ec6a66c56b055e0dbcd3 /app/services
parent8320faf132dfc6d2579eebcf81a5a25961edea45 (diff)
just use ENV.
Diffstat (limited to 'app/services')
-rw-r--r--app/services/infrastructure/environment_variables.rb5
-rw-r--r--app/services/infrastructure/twitter_publisher.rb2
2 files changed, 1 insertions, 6 deletions
diff --git a/app/services/infrastructure/environment_variables.rb b/app/services/infrastructure/environment_variables.rb
deleted file mode 100644
index 8da54e62..00000000
--- a/app/services/infrastructure/environment_variables.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-class EnvironmentVariables
- def [](key)
- ENV[key]
- end
-end
diff --git a/app/services/infrastructure/twitter_publisher.rb b/app/services/infrastructure/twitter_publisher.rb
index 24793510..8d5a1bec 100644
--- a/app/services/infrastructure/twitter_publisher.rb
+++ b/app/services/infrastructure/twitter_publisher.rb
@@ -1,5 +1,5 @@
class TwitterPublisher
- def initialize(configuration)
+ def initialize(configuration = ENV)
@configuration = configuration
end