lxc 0.1.1 → 0.1.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 (3) hide show
  1. data/lib/lxc/container.rb +10 -0
  2. data/lib/lxc/version.rb +1 -1
  3. metadata +3 -3
data/lib/lxc/container.rb CHANGED
@@ -211,6 +211,16 @@ class LXC
211
211
  self.exec("lxc-execute", "-f", self.config.filename, "--", *args)
212
212
  end
213
213
 
214
+ # Run an application inside a container
215
+ #
216
+ # Executes the supplied application inside a container. The container must
217
+ # already be running.
218
+ #
219
+ # @see lxc-attach
220
+ def attach(*args)
221
+ self.exec("lxc-attach", "--", *args)
222
+ end
223
+
214
224
  # Launch a console for the container
215
225
  #
216
226
  # @see lxc-console
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.1.1"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
 
8
8
  end
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.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -182,7 +182,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
182
182
  version: '0'
183
183
  segments:
184
184
  - 0
185
- hash: -2074872461255389873
185
+ hash: 4168689960040031233
186
186
  required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  none: false
188
188
  requirements:
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  version: '0'
192
192
  segments:
193
193
  - 0
194
- hash: -2074872461255389873
194
+ hash: 4168689960040031233
195
195
  requirements: []
196
196
  rubyforge_project:
197
197
  rubygems_version: 1.8.25