sapoku 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/sapoku.rb +7 -7
  2. metadata +18 -2
@@ -1,7 +1,7 @@
1
1
  require 'redis'
2
2
  require 'erb'
3
3
 
4
- class Gyro
4
+ class Tadpole
5
5
  attr_accessor :container_ip, :local_port, :app_name, :userid, :ram
6
6
  $redis = Redis.new
7
7
 
@@ -10,12 +10,12 @@ class Gyro
10
10
  # if this is false, return nil
11
11
  return nil if !$redis.hexists(name, "ip")
12
12
 
13
- gyro = self.new(name)
14
- gyro.container_ip = $redis.hget(name, "ip")
15
- gyro.local_port = $redis.hget(name, "localport")
16
- gyro.userid = $redis.hget(name, "userid")
17
- gyro.ram = $redis.hget(name, "ram")
18
- return gyro
13
+ tadpole = self.new(name)
14
+ tadpole.container_ip = $redis.hget(name, "ip")
15
+ tadpole.local_port = $redis.hget(name, "localport")
16
+ tadpole.userid = $redis.hget(name, "userid")
17
+ tadpole.ram = $redis.hget(name, "ram")
18
+ return tadpole
19
19
  end
20
20
 
21
21
  # create a new container stub (then requires saving)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sapoku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,23 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
  date: 2012-11-16 00:00:00.000000000 Z
13
- dependencies: []
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: redis
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
14
30
  description: Manages Sapoku instances
15
31
  email: fred@helloform.com
16
32
  executables: []