aboutsummaryrefslogtreecommitdiff
path: root/vendor/supply_drop/lib/supply_drop/util.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-04-01 00:04:54 -0700
committerelijah <elijah@riseup.net>2013-04-01 00:04:54 -0700
commitb9a20186350a0315ee7159f2df2b55a47e9f90a4 (patch)
tree845b08feaa723a00d6dc7da26be68471fc4c7e1e /vendor/supply_drop/lib/supply_drop/util.rb
parentc3f78c9df38f6e4dec94737863dcfcc1f4e60e96 (diff)
downloadleap_cli-b9a20186350a0315ee7159f2df2b55a47e9f90a4.tar.gz
leap_cli-b9a20186350a0315ee7159f2df2b55a47e9f90a4.tar.bz2
remove supply_drop, add support for puppet_command.
Diffstat (limited to 'vendor/supply_drop/lib/supply_drop/util.rb')
-rw-r--r--vendor/supply_drop/lib/supply_drop/util.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/vendor/supply_drop/lib/supply_drop/util.rb b/vendor/supply_drop/lib/supply_drop/util.rb
deleted file mode 100644
index 5f4f9f4..0000000
--- a/vendor/supply_drop/lib/supply_drop/util.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-module SupplyDrop
- module Util
- DEFAULT_THREAD_POOL_SIZE = 10
-
- def self.thread_pool_size
- @thread_pool_size ||= DEFAULT_THREAD_POOL_SIZE
- end
-
- def self.thread_pool_size=(size)
- @thread_pool_size = size
- end
-
- def self.optionally_async(collection, async)
- if async
- async_collection = collection.clone
- async_collection.extend SupplyDrop::AsyncEnumerable
- async_collection
- else
- collection
- end
- end
- end
-end