sambala 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sambala.rb +7 -0
- data/lib/sambala_gardener.rb +2 -1
- metadata +2 -2
data/lib/sambala.rb
CHANGED
@@ -247,6 +247,13 @@ class Sambala
|
|
247
247
|
crop.map! { |result| [ result[:success], result[:seed], result[:message] ] }
|
248
248
|
end
|
249
249
|
|
250
|
+
# The +progress+ method returns a progress ratio indicator from 0.00 to 1.00
|
251
|
+
# === Example
|
252
|
+
# progress = sam.progress # => 0.75
|
253
|
+
def progress
|
254
|
+
@gardener.growth(:progress)
|
255
|
+
end
|
256
|
+
|
250
257
|
# The +close+ method safely end the smbclient session
|
251
258
|
# === Example
|
252
259
|
# sam.close
|
data/lib/sambala_gardener.rb
CHANGED
@@ -3,7 +3,8 @@ class Sambala
|
|
3
3
|
# The Sambala::Gardener module bings Abundance into Sambala.
|
4
4
|
# A bunch of mixins used inside Sambala to access Abundance Non-Blocking Threading.
|
5
5
|
# These methods are a higher level abstraction of Abundance methods,
|
6
|
-
# serving as reusable general purpose agents inside Sambala
|
6
|
+
# serving as reusable general purpose agents inside Sambala, mainly
|
7
|
+
# for those repetitive execution commands.
|
7
8
|
#
|
8
9
|
# Author:: lp (mailto:lp@spiralix.org)
|
9
10
|
# Copyright:: 2008 Louis-Philippe Perron - Released under the terms of the MIT license
|
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.4
|
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-17 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|