vamboo 1.1.2 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +0 -3
- data/bin/vamboo +0 -0
- data/lib/vamboo/domainlist.rb +24 -11
- data/lib/vamboo/version.rb +1 -1
- data/vamboo.gemspec +9 -5
- metadata +55 -35
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 802fc5675c15fdfde308b87ef6e29195ba247b2b
|
4
|
+
data.tar.gz: 51fbbf61a237194affafbee4ae60db120eeee8a5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 732400c5a21189ff2923c5c40240782b0e75259562c86cc9fa07ff00c271855305e40faf407af70e6b7773f461ccc600d63e4b0193a95df33f3739f600fa39b1
|
7
|
+
data.tar.gz: da67c1c3a1e630f67e0b9c6e976ad72228027e5aab6c39321163f43a100ce0b71cfe9eb138f4ddc1e15fdb7f0e554ec2ace9ee26c26a5e72e3228fbc2a4bef62
|
data/Gemfile
CHANGED
data/bin/vamboo
CHANGED
File without changes
|
data/lib/vamboo/domainlist.rb
CHANGED
@@ -62,11 +62,30 @@ class Domain
|
|
62
62
|
file.write(xml)
|
63
63
|
end
|
64
64
|
|
65
|
+
log.info("Copy vmhd")
|
66
|
+
threads = @vmhd_pathes.map do |vmhd_path|
|
67
|
+
Thread.new do
|
68
|
+
name = File.basename(vmhd_path)
|
69
|
+
FileUtils.cp("#{vmhd_path}", "#{tmp_path}/#{name}")
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
threads.each do |t|
|
74
|
+
t.join
|
75
|
+
end
|
76
|
+
|
77
|
+
if active
|
78
|
+
log.info("Start")
|
79
|
+
domain.create
|
80
|
+
sleep(10) until domain.active?
|
81
|
+
end
|
82
|
+
|
65
83
|
log.info("Compress vmhd")
|
66
84
|
@vmhd_pathes.each do |vmhd_path|
|
67
|
-
File.
|
68
|
-
|
69
|
-
|
85
|
+
name = File.basename(vmhd_path)
|
86
|
+
tmp = "#{tmp_path}/#{name}"
|
87
|
+
File.open(tmp, "rb") do |vmhd|
|
88
|
+
Zlib::GzipWriter.open("#{tmp}.gz", Zlib::BEST_COMPRESSION) do |gz|
|
70
89
|
offset = 0
|
71
90
|
length = 1024
|
72
91
|
while offset < vmhd.size
|
@@ -75,13 +94,7 @@ class Domain
|
|
75
94
|
end
|
76
95
|
end
|
77
96
|
end
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
if active
|
82
|
-
log.info("Start")
|
83
|
-
domain.create
|
84
|
-
sleep(10) until domain.active?
|
97
|
+
FileUtils.rm(tmp, {:force => true})
|
85
98
|
end
|
86
99
|
|
87
100
|
log.info("Archive")
|
@@ -117,4 +130,4 @@ class Domain
|
|
117
130
|
def verify
|
118
131
|
"#{@name} #{@vmhd_pathes}"
|
119
132
|
end
|
120
|
-
end
|
133
|
+
end
|
data/lib/vamboo/version.rb
CHANGED
data/vamboo.gemspec
CHANGED
@@ -8,17 +8,21 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Vamboo::VERSION
|
9
9
|
spec.authors = ["numa08", "funabiki.t"]
|
10
10
|
spec.email = ["n511287@gmail.com", "funabiki.t@isoroot.jp"]
|
11
|
-
spec.description = "
|
12
|
-
spec.summary = ""
|
13
|
-
spec.homepage = ""
|
11
|
+
spec.description = "you can easy backup virtual machines"
|
12
|
+
spec.summary = "virtual machine backup util"
|
13
|
+
spec.homepage = "https://github.com/numa08/vamboo"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
|
+
spec.bindir = 'bin'
|
21
|
+
|
22
|
+
spec.add_runtime_dependency "thor", "~> 0.19"
|
23
|
+
spec.add_runtime_dependency "ruby-libvirt", "~> 0.5"
|
24
|
+
spec.add_runtime_dependency "archive-tar-minitar", "~> 0.5"
|
20
25
|
|
21
26
|
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
-
spec.add_development_dependency "rake"
|
23
|
-
spec.add_development_dependency "libvirt"
|
27
|
+
spec.add_development_dependency "rake" , "~> 10.1"
|
24
28
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vamboo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- numa08
|
@@ -10,57 +9,79 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2014-
|
12
|
+
date: 2014-09-03 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
15
|
+
name: thor
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
|
-
- - ~>
|
18
|
+
- - "~>"
|
21
19
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
23
|
-
type: :
|
20
|
+
version: '0.19'
|
21
|
+
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
|
-
- - ~>
|
25
|
+
- - "~>"
|
29
26
|
- !ruby/object:Gem::Version
|
30
|
-
version: '
|
27
|
+
version: '0.19'
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
|
-
name:
|
29
|
+
name: ruby-libvirt
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0.5'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0.5'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: archive-tar-minitar
|
33
44
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
45
|
requirements:
|
36
|
-
- -
|
46
|
+
- - "~>"
|
37
47
|
- !ruby/object:Gem::Version
|
38
|
-
version: '0'
|
48
|
+
version: '0.5'
|
49
|
+
type: :runtime
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0.5'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: bundler
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '1.3'
|
39
63
|
type: :development
|
40
64
|
prerelease: false
|
41
65
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
66
|
requirements:
|
44
|
-
- -
|
67
|
+
- - "~>"
|
45
68
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
69
|
+
version: '1.3'
|
47
70
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
71
|
+
name: rake
|
49
72
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
73
|
requirements:
|
52
|
-
- -
|
74
|
+
- - "~>"
|
53
75
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
76
|
+
version: '10.1'
|
55
77
|
type: :development
|
56
78
|
prerelease: false
|
57
79
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
80
|
requirements:
|
60
|
-
- -
|
81
|
+
- - "~>"
|
61
82
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
63
|
-
description:
|
83
|
+
version: '10.1'
|
84
|
+
description: you can easy backup virtual machines
|
64
85
|
email:
|
65
86
|
- n511287@gmail.com
|
66
87
|
- funabiki.t@isoroot.jp
|
@@ -69,7 +90,7 @@ executables:
|
|
69
90
|
extensions: []
|
70
91
|
extra_rdoc_files: []
|
71
92
|
files:
|
72
|
-
- .gitignore
|
93
|
+
- ".gitignore"
|
73
94
|
- Gemfile
|
74
95
|
- LICENSE.txt
|
75
96
|
- README.md
|
@@ -81,29 +102,28 @@ files:
|
|
81
102
|
- lib/vamboo/vamboofile.rb
|
82
103
|
- lib/vamboo/version.rb
|
83
104
|
- vamboo.gemspec
|
84
|
-
homepage:
|
105
|
+
homepage: https://github.com/numa08/vamboo
|
85
106
|
licenses:
|
86
107
|
- MIT
|
108
|
+
metadata: {}
|
87
109
|
post_install_message:
|
88
110
|
rdoc_options: []
|
89
111
|
require_paths:
|
90
112
|
- lib
|
91
113
|
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
-
none: false
|
93
114
|
requirements:
|
94
|
-
- -
|
115
|
+
- - ">="
|
95
116
|
- !ruby/object:Gem::Version
|
96
117
|
version: '0'
|
97
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
119
|
requirements:
|
100
|
-
- -
|
120
|
+
- - ">="
|
101
121
|
- !ruby/object:Gem::Version
|
102
122
|
version: '0'
|
103
123
|
requirements: []
|
104
124
|
rubyforge_project:
|
105
|
-
rubygems_version:
|
125
|
+
rubygems_version: 2.2.2
|
106
126
|
signing_key:
|
107
|
-
specification_version:
|
108
|
-
summary:
|
127
|
+
specification_version: 4
|
128
|
+
summary: virtual machine backup util
|
109
129
|
test_files: []
|