sambala 0.8.4 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/sambala.rb +3 -2
- data/lib/sambala_gardener.rb +1 -1
- metadata +3 -3
data/lib/sambala.rb
CHANGED
@@ -44,11 +44,12 @@ class Sambala
|
|
44
44
|
# * :threads = how many parallel operations you want initiated, !!! higher than 4 at you own risk !!!
|
45
45
|
# === Example
|
46
46
|
# sam = Sambala.new( :domain => 'NTDOMAIN',
|
47
|
-
# :host => 'sambaserver',
|
47
|
+
# :host => 'sambaserver',
|
48
|
+
# :share => 'sambashare',
|
48
49
|
# :user => 'walrus',
|
49
50
|
# :password => 'eggman',
|
50
51
|
# :threads => 2 )
|
51
|
-
def initialize(options={:domain => '', :host => '', :user => '', :password => '', :threads => 1})
|
52
|
+
def initialize(options={:domain => '', :host => '', :share => '', :user => '', :password => '', :threads => 1})
|
52
53
|
begin
|
53
54
|
options[:threads] = 4 if options[:threads] > 4
|
54
55
|
options[:init_timeout] = options[:threads] * 2
|
data/lib/sambala_gardener.rb
CHANGED
@@ -77,7 +77,7 @@ class Sambala
|
|
77
77
|
|
78
78
|
# The +init_gardener+ method initialize a gardener class object
|
79
79
|
def init_gardener
|
80
|
-
@gardener = Abundance.gardener(:
|
80
|
+
@gardener = Abundance.gardener(:wheelbarrow => 8192, :rows => @options[:threads], :init_timeout => @options[:init_timeout]) do
|
81
81
|
PTY.spawn("smbclient //#{@options[:host]}/#{@options[:share]} #{@options[:password]} -W #{@options[:domain]} -U #{@options[:user]}") do |r,w,pid|
|
82
82
|
w.sync = true
|
83
83
|
$expect_verbose = false
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sambala
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Louis-Philippe Perron
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-12-
|
12
|
+
date: 2008-12-31 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 1.
|
23
|
+
version: 1.1.1
|
24
24
|
version:
|
25
25
|
description:
|
26
26
|
email: lp@spiralix.org
|