lxc 0.3.1 → 0.3.2

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.
Files changed (4) hide show
  1. data/README.md +29 -27
  2. data/lib/lxc/version.rb +1 -1
  3. data/lxc.gemspec +2 -2
  4. metadata +9 -3
data/README.md CHANGED
@@ -4,9 +4,9 @@
4
4
  [![Coverage Status](https://coveralls.io/repos/zpatten/lxc/badge.png?branch=master)](https://coveralls.io/r/zpatten/lxc)
5
5
  [![Code Climate](https://codeclimate.com/github/zpatten/lxc.png)](https://codeclimate.com/github/zpatten/lxc)
6
6
 
7
- # LXC
7
+ # LXC RUBYGEM
8
8
 
9
- An interface for controlling local or remote Linux Containers (LXC).
9
+ RubyGem for controlling local or remote Linux Containers (LXC)
10
10
 
11
11
  # EXAMPLES
12
12
 
@@ -15,8 +15,7 @@ Given the following code:
15
15
 
16
16
  require 'lxc'
17
17
 
18
- lxc = LXC.new(:use_sudo => true)
19
- lxc.use_sudo = true
18
+ lxc = LXC.new
20
19
  lxc.version
21
20
  c = LXC::Container.new(:lxc => lxc, :name => 'test')
22
21
  c.running?
@@ -24,38 +23,36 @@ Given the following code:
24
23
 
25
24
  Executed via the lxc-console development binary:
26
25
 
27
- $ be ./bin/lxc-console
26
+ $ bin/lxc-console
28
27
 
29
- From: /home/zpatten/Dropbox/code/personal/testlab-repo/vendor/checkouts/lxc/bin/lxc-console @ line 12 Object#lxc_console:
28
+ From: /home/zpatten/code/personal/testlab-repo/vendor/checkouts/lxc/bin/lxc-console @ line 33 Object#lxc_console:
30
29
 
31
- 3: def lxc_console
32
- 4: require 'pry'
33
- 5: require 'lxc'
34
- 6:
35
- 7: ##
36
- 8: #
37
- 9: # Welcome to the LXC RubyGem console!
38
- 10: #
39
- 11: ##
40
- => 12: binding.pry
41
- 13: end
30
+ 24: def lxc_console
31
+ 25: require 'pry'
32
+ 26: require 'lxc'
33
+ 27:
34
+ 28: ##
35
+ 29: #
36
+ 30: # Welcome to the LXC RubyGem console!
37
+ 31: #
38
+ 32: ##
39
+ => 33: binding.pry
40
+ 34: end
42
41
 
43
42
  [1] pry(main)> require 'lxc'
44
43
  => false
45
44
  [2] pry(main)>
46
- [3] pry(main)> lxc = LXC.new(:use_sudo => true)
47
- => #<LXC use_sudo=true use_ssh=false>
48
- [4] pry(main)> lxc.use_sudo = true
49
- => true
50
- [5] pry(main)> lxc.version
45
+ [3] pry(main)> lxc = LXC.new
46
+ => #<LXC version="0.8.0-rc2" runner=#<LXC::Runner::Shell host="zsp-desktop" use_sudo=true>>
47
+ [4] pry(main)> lxc.version
51
48
  => "0.8.0-rc2"
52
- [6] pry(main)> c = LXC::Container.new(:lxc => lxc, :name => 'test')
49
+ [5] pry(main)> c = LXC::Container.new(:lxc => lxc, :name => 'test')
53
50
  => #<LXC::Container name="test">
54
- [7] pry(main)> c.running?
51
+ [6] pry(main)> c.running?
55
52
  => false
56
- [8] pry(main)> c.exists?
53
+ [7] pry(main)> c.exists?
57
54
  => false
58
- [9] pry(main)>
55
+ [8] pry(main)>
59
56
 
60
57
  # RUBIES TESTED AGAINST
61
58
 
@@ -83,9 +80,14 @@ Issues:
83
80
 
84
81
  * https://github.com/zpatten/lxc/issues
85
82
 
83
+ # OFFICIAL LXC PROJECT
84
+
85
+ * http://lxc.sourceforge.net/
86
+ * https://github.com/lxc/lxc
87
+
86
88
  # LICENSE
87
89
 
88
- LXC - An interface for controlling local or remote Linux Containers (LXC)
90
+ LXC RubyGem - RubyGem for controlling local or remote Linux Containers (LXC)
89
91
 
90
92
  * Author: Zachary Patten <zachary AT jovelabs DOT com> [![endorse](http://api.coderwall.com/zpatten/endorsecount.png)](http://coderwall.com/zpatten)
91
93
  * Copyright: Copyright (c) Zachary Patten
data/lib/lxc/version.rb CHANGED
@@ -2,7 +2,7 @@ class LXC
2
2
 
3
3
  unless const_defined?(:VERSION)
4
4
  # LXC Gem Version
5
- VERSION = "0.3.1"
5
+ VERSION = "0.3.2"
6
6
  end
7
7
 
8
8
  end
data/lxc.gemspec CHANGED
@@ -26,8 +26,8 @@ Gem::Specification.new do |spec|
26
26
  spec.version = LXC::VERSION
27
27
  spec.authors = ["Zachary Patten"]
28
28
  spec.email = ["zachary AT jovelabs DOT com"]
29
- spec.description = %q(An interface for controlling local or remote Linux Containers (LXC))
30
- spec.summary = %q(An interface for controlling local or remote Linux Containers (LXC))
29
+ spec.description = %(RubyGem for controlling local or remote Linux Containers (LXC))
30
+ spec.summary = %(RubyGem for controlling local or remote Linux Containers (LXC))
31
31
  spec.homepage = "https://github.com/zpatten/lxc"
32
32
  spec.license = "Apache 2.0"
33
33
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lxc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -139,7 +139,7 @@ dependencies:
139
139
  - - ! '>='
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
- description: An interface for controlling local or remote Linux Containers (LXC)
142
+ description: RubyGem for controlling local or remote Linux Containers (LXC)
143
143
  email:
144
144
  - zachary AT jovelabs DOT com
145
145
  executables:
@@ -217,18 +217,24 @@ required_ruby_version: !ruby/object:Gem::Requirement
217
217
  - - ! '>='
218
218
  - !ruby/object:Gem::Version
219
219
  version: '0'
220
+ segments:
221
+ - 0
222
+ hash: -612644948775280069
220
223
  required_rubygems_version: !ruby/object:Gem::Requirement
221
224
  none: false
222
225
  requirements:
223
226
  - - ! '>='
224
227
  - !ruby/object:Gem::Version
225
228
  version: '0'
229
+ segments:
230
+ - 0
231
+ hash: -612644948775280069
226
232
  requirements: []
227
233
  rubyforge_project:
228
234
  rubygems_version: 1.8.25
229
235
  signing_key:
230
236
  specification_version: 3
231
- summary: An interface for controlling local or remote Linux Containers (LXC)
237
+ summary: RubyGem for controlling local or remote Linux Containers (LXC)
232
238
  test_files:
233
239
  - spec/lxc/config_spec.rb
234
240
  - spec/lxc/container_spec.rb