jamie-lxc 0.0.1.alpha2 → 0.0.1.alpha3

Sign up to get free protection for your applications and to get access to all the features.
data/jamie-lxc.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "jamie-lxc"
3
- gem.version = "0.0.1.alpha2"
3
+ gem.version = "0.0.1.alpha3"
4
4
  gem.authors = ["Sean Porter"]
5
5
  gem.email = ["portertech@gmail.com"]
6
6
  gem.description = "LXC driver for Jamie"
@@ -11,6 +11,8 @@ module Jamie
11
11
  default_config "use_sudo", true
12
12
  default_config "dhcp_lease_file", "/var/lib/misc/dnsmasq.leases"
13
13
  default_config "port", "22"
14
+ default_config "username", "jamie"
15
+ default_config "password", "jamie"
14
16
 
15
17
  def perform_create(instance, state)
16
18
  state["container_id"] = instance.name + "-" + ::SecureRandom.hex(3)
@@ -46,7 +48,7 @@ module Jamie
46
48
 
47
49
  def container_ip(state)
48
50
  if ::File.exists?(config["dhcp_lease_file"])
49
- 20.times do
51
+ 30.times do
50
52
  leases = ::File.readlines(config["dhcp_lease_file"]).map{ |line| line.split(" ") }
51
53
  leases.each do |lease|
52
54
  if lease.include?(state["container_id"])
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: jamie-lxc
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 0.0.1.alpha2
5
+ version: 0.0.1.alpha3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Sean Porter
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-22 00:00:00.000000000 Z
12
+ date: 2012-12-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  type: :runtime