shrub 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README +3 -0
  2. data/lib/ShrubClient.rb +0 -17
  3. metadata +2 -2
data/README CHANGED
@@ -7,3 +7,6 @@ and to uninstall it:
7
7
  shrub_service uninstall
8
8
 
9
9
  There's no documentation for now. You can get to the meat of it by looking up the ShrubClient.rb file. Check the methods out. More docs to come :-)
10
+
11
+ Version 0.1.1
12
+ * Added a few fixes to the code that installs the shrub service.
@@ -1,4 +1,3 @@
1
- require 'socket'
2
1
  require 'drb'
3
2
 
4
3
  class ShrubClient
@@ -12,22 +11,6 @@ class ShrubClient
12
11
  DRb.start_service
13
12
  runner = DRbObject.new(nil, @url)
14
13
  puts runner.run_code(@username, @password, code)
15
-
16
- return
17
-
18
- code = code.strip
19
- return "" if code.length == 0
20
- command = "#{code.length}#{code}"
21
- command = "#{code.length}\n#{code}"
22
- data = ""
23
-
24
- TCPSocket.open(@host, @port) {|s|
25
- s.write(command)
26
- size = s.readline
27
- data = s.read(size.to_i)
28
- }
29
-
30
- return data
31
14
  end
32
15
 
33
16
  def runfile(filename)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shrub
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.1"
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Rosario
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-31 00:00:00 +05:30
12
+ date: 2008-08-04 00:00:00 +05:30
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency