Skip to content

Commit

Permalink
Clean up syntax a little bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan Serman committed Mar 23, 2016
1 parent 2adad06 commit d627c0e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
4 changes: 1 addition & 3 deletions lib/elbas/logger.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
module Elbas
module Logger

def info(message)
p "ELBAS: #{message}"
end

end
end
end
2 changes: 0 additions & 2 deletions lib/elbas/retryable.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module Elbas
module Retryable

def with_retry(max: fetch(:elbas_retry_max, 3), delay: fetch(:elbas_retry_delay, 5))
tries ||= 0
tries += 1
Expand All @@ -13,6 +12,5 @@ def with_retry(max: fetch(:elbas_retry_max, 3), delay: fetch(:elbas_retry_delay,
retry
end
end

end
end
2 changes: 0 additions & 2 deletions lib/elbas/taggable.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
module Elbas
module Taggable

def tag(tags = {})
with_retry do
tags.each { |k, v| aws_counterpart.tags[k] = v }
end
end

end
end

0 comments on commit d627c0e

Please sign in to comment.