fission 0.2.0 → 0.3.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +9 -0
- data/README.md +44 -3
- data/fission.gemspec +3 -2
- data/lib/fission.rb +6 -0
- data/lib/fission/cli.rb +12 -6
- data/lib/fission/command/clone.rb +3 -4
- data/lib/fission/command/delete.rb +65 -0
- data/lib/fission/command/snapshot_create.rb +47 -0
- data/lib/fission/command/snapshot_list.rb +42 -0
- data/lib/fission/command/snapshot_revert.rb +47 -0
- data/lib/fission/command/start.rb +22 -4
- data/lib/fission/command/stop.rb +2 -2
- data/lib/fission/command/suspend.rb +29 -13
- data/lib/fission/config.rb +2 -0
- data/lib/fission/fusion.rb +13 -0
- data/lib/fission/metadata.rb +39 -0
- data/lib/fission/version.rb +1 -1
- data/lib/fission/vm.rb +100 -15
- data/spec/fission/cli_spec.rb +91 -11
- data/spec/fission/command/clone_spec.rb +2 -6
- data/spec/fission/command/delete_spec.rb +109 -0
- data/spec/fission/command/snapshot_create_spec.rb +88 -0
- data/spec/fission/command/snapshot_list_spec.rb +61 -0
- data/spec/fission/command/snapshot_revert_spec.rb +90 -0
- data/spec/fission/command/start_spec.rb +35 -6
- data/spec/fission/command/status_spec.rb +2 -2
- data/spec/fission/command/stop_spec.rb +1 -4
- data/spec/fission/command/suspend_spec.rb +27 -6
- data/spec/fission/command_spec.rb +0 -1
- data/spec/fission/config_spec.rb +10 -0
- data/spec/fission/fusion_spec.rb +22 -0
- data/spec/fission/metadata_spec.rb +100 -0
- data/spec/fission/ui_spec.rb +8 -12
- data/spec/fission/vm_spec.rb +268 -44
- data/spec/spec_helper.rb +0 -17
- metadata +40 -11
data/spec/spec_helper.rb
CHANGED
@@ -1,20 +1,3 @@
|
|
1
1
|
require 'rspec'
|
2
2
|
require 'fission'
|
3
3
|
require 'fakefs/safe'
|
4
|
-
|
5
|
-
# Helper to capture our stdout
|
6
|
-
# Example
|
7
|
-
# output = capturing_output do
|
8
|
-
# lambda {
|
9
|
-
# Erector.new(["--version"])
|
10
|
-
# }.should raise_error(SystemExit)
|
11
|
-
# end
|
12
|
-
# output.should == Erector::VERSION + "\n"
|
13
|
-
def capturing_output
|
14
|
-
output = StringIO.new
|
15
|
-
$stdout = output
|
16
|
-
yield
|
17
|
-
output.string
|
18
|
-
ensure
|
19
|
-
$stdout = STDOUT
|
20
|
-
end
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fission
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
version: 0.
|
4
|
+
prerelease: 6
|
5
|
+
version: 0.3.0.beta.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Tommy Bishop
|
@@ -10,31 +10,42 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-09-08 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: CFPropertyList
|
17
17
|
prerelease: false
|
18
18
|
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ~>
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 2.0.17
|
24
|
+
type: :runtime
|
25
|
+
version_requirements: *id001
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: rspec
|
28
|
+
prerelease: false
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
19
30
|
none: false
|
20
31
|
requirements:
|
21
32
|
- - ~>
|
22
33
|
- !ruby/object:Gem::Version
|
23
34
|
version: 2.6.0
|
24
35
|
type: :development
|
25
|
-
version_requirements: *
|
36
|
+
version_requirements: *id002
|
26
37
|
- !ruby/object:Gem::Dependency
|
27
38
|
name: fakefs
|
28
39
|
prerelease: false
|
29
|
-
requirement: &
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
30
41
|
none: false
|
31
42
|
requirements:
|
32
43
|
- - ~>
|
33
44
|
- !ruby/object:Gem::Version
|
34
45
|
version: 0.3.2
|
35
46
|
type: :development
|
36
|
-
version_requirements: *
|
37
|
-
description: A simple utility to
|
47
|
+
version_requirements: *id003
|
48
|
+
description: A simple utility to manage VMware Fusion VMs from the command line
|
38
49
|
email:
|
39
50
|
- bishop.thomas@gmail.com
|
40
51
|
executables:
|
@@ -58,6 +69,10 @@ files:
|
|
58
69
|
- lib/fission/cli.rb
|
59
70
|
- lib/fission/command.rb
|
60
71
|
- lib/fission/command/clone.rb
|
72
|
+
- lib/fission/command/delete.rb
|
73
|
+
- lib/fission/command/snapshot_create.rb
|
74
|
+
- lib/fission/command/snapshot_list.rb
|
75
|
+
- lib/fission/command/snapshot_revert.rb
|
61
76
|
- lib/fission/command/start.rb
|
62
77
|
- lib/fission/command/status.rb
|
63
78
|
- lib/fission/command/stop.rb
|
@@ -66,17 +81,25 @@ files:
|
|
66
81
|
- lib/fission/core_ext/class.rb
|
67
82
|
- lib/fission/core_ext/file.rb
|
68
83
|
- lib/fission/core_ext/object.rb
|
84
|
+
- lib/fission/fusion.rb
|
85
|
+
- lib/fission/metadata.rb
|
69
86
|
- lib/fission/ui.rb
|
70
87
|
- lib/fission/version.rb
|
71
88
|
- lib/fission/vm.rb
|
72
89
|
- spec/fission/cli_spec.rb
|
73
90
|
- spec/fission/command/clone_spec.rb
|
91
|
+
- spec/fission/command/delete_spec.rb
|
92
|
+
- spec/fission/command/snapshot_create_spec.rb
|
93
|
+
- spec/fission/command/snapshot_list_spec.rb
|
94
|
+
- spec/fission/command/snapshot_revert_spec.rb
|
74
95
|
- spec/fission/command/start_spec.rb
|
75
96
|
- spec/fission/command/status_spec.rb
|
76
97
|
- spec/fission/command/stop_spec.rb
|
77
98
|
- spec/fission/command/suspend_spec.rb
|
78
99
|
- spec/fission/command_spec.rb
|
79
100
|
- spec/fission/config_spec.rb
|
101
|
+
- spec/fission/fusion_spec.rb
|
102
|
+
- spec/fission/metadata_spec.rb
|
80
103
|
- spec/fission/ui_spec.rb
|
81
104
|
- spec/fission/vm_spec.rb
|
82
105
|
- spec/fission_spec.rb
|
@@ -98,25 +121,31 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
98
121
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
122
|
none: false
|
100
123
|
requirements:
|
101
|
-
- - "
|
124
|
+
- - ">"
|
102
125
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
126
|
+
version: 1.3.1
|
104
127
|
requirements: []
|
105
128
|
|
106
129
|
rubyforge_project: fission
|
107
130
|
rubygems_version: 1.8.5
|
108
131
|
signing_key:
|
109
132
|
specification_version: 3
|
110
|
-
summary:
|
133
|
+
summary: Command line tool to manage VMware Fusion VMs
|
111
134
|
test_files:
|
112
135
|
- spec/fission/cli_spec.rb
|
113
136
|
- spec/fission/command/clone_spec.rb
|
137
|
+
- spec/fission/command/delete_spec.rb
|
138
|
+
- spec/fission/command/snapshot_create_spec.rb
|
139
|
+
- spec/fission/command/snapshot_list_spec.rb
|
140
|
+
- spec/fission/command/snapshot_revert_spec.rb
|
114
141
|
- spec/fission/command/start_spec.rb
|
115
142
|
- spec/fission/command/status_spec.rb
|
116
143
|
- spec/fission/command/stop_spec.rb
|
117
144
|
- spec/fission/command/suspend_spec.rb
|
118
145
|
- spec/fission/command_spec.rb
|
119
146
|
- spec/fission/config_spec.rb
|
147
|
+
- spec/fission/fusion_spec.rb
|
148
|
+
- spec/fission/metadata_spec.rb
|
120
149
|
- spec/fission/ui_spec.rb
|
121
150
|
- spec/fission/vm_spec.rb
|
122
151
|
- spec/fission_spec.rb
|