rubear 0.0.6
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.
- checksums.yaml +7 -0
- data/lib/rubear.rb +32 -0
- metadata +44 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 356763d098c551ec3332167a5132f7d54f03fd5f
|
|
4
|
+
data.tar.gz: e6cdfad5e9fa39ad2fec6f7b17a5fe17132863f0
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 44349dcc6e03726f91449a3ad60262e2c8ac0ae30820ade24d1e70fadd031670285c9972e0401fe47879d676b71fc485720fc08100206e55d14931b589565842
|
|
7
|
+
data.tar.gz: c033a0c02a905e108cce773ffb1783d5334bfb8a1894847ac3db91bb6c79f117180ee13ac6a2c69559ecfbb888225e4b46961e082b7257b8b1fcd03feaa8f976
|
data/lib/rubear.rb
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
|
|
3
|
+
==== init info
|
|
4
|
+
class Rubear(container_name)
|
|
5
|
+
|
|
6
|
+
==== To use
|
|
7
|
+
y = Rubear.new("container_name")
|
|
8
|
+
y.lxc_start
|
|
9
|
+
y.lxc_stop
|
|
10
|
+
|
|
11
|
+
* require sudo
|
|
12
|
+
|
|
13
|
+
===== Created by itsabear <itsabear@cpan.org>
|
|
14
|
+
* junk gem :P
|
|
15
|
+
=end
|
|
16
|
+
|
|
17
|
+
class Rubear
|
|
18
|
+
def initialize(container_name)
|
|
19
|
+
@container_name = container_name
|
|
20
|
+
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# * instance.start_lxc
|
|
24
|
+
def start_lxc
|
|
25
|
+
`sudo lxc-start -n #{@container_name}`
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# * instance.stop_lxc
|
|
29
|
+
def stop_lxc
|
|
30
|
+
`sudo lxc-stop -n #{@container_name}`
|
|
31
|
+
end
|
|
32
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: rubear
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.6
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- itsabear@cpan.org
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2016-08-30 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: An lxc-container manager
|
|
14
|
+
email: itsabear@cpan.org
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- lib/rubear.rb
|
|
20
|
+
homepage: http://rubygems.org/gems/rubear
|
|
21
|
+
licenses:
|
|
22
|
+
- MIT
|
|
23
|
+
metadata: {}
|
|
24
|
+
post_install_message:
|
|
25
|
+
rdoc_options: []
|
|
26
|
+
require_paths:
|
|
27
|
+
- lib
|
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '1.8'
|
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
34
|
+
requirements:
|
|
35
|
+
- - ">="
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0'
|
|
38
|
+
requirements: []
|
|
39
|
+
rubyforge_project:
|
|
40
|
+
rubygems_version: 2.5.1
|
|
41
|
+
signing_key:
|
|
42
|
+
specification_version: 4
|
|
43
|
+
summary: Rubear
|
|
44
|
+
test_files: []
|