virtualman 1.1.0 → 1.1.1

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. metadata +2 -8
  2. data/bin/clone_cooking +0 -31
  3. data/bin/clone_vm +0 -12
  4. data/bin/ssh_cloned +0 -42
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: virtualman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,16 +9,13 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-06 00:00:00.000000000 Z
12
+ date: 2012-09-11 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: It is for writing scripts for UNIX-like systems to handle your VirtualBox
15
15
  appliance.
16
16
  email: pierre.ozoux@gmail.com
17
17
  executables:
18
- - clone_vm
19
18
  - virtualman
20
- - ssh_cloned
21
- - clone_cooking
22
19
  extensions: []
23
20
  extra_rdoc_files: []
24
21
  files:
@@ -28,10 +25,7 @@ files:
28
25
  - lib/virtualman/menu.rb
29
26
  - lib/virtualman/vm.rb
30
27
  - lib/virtualman/vmlister.rb
31
- - bin/clone_vm
32
28
  - bin/virtualman
33
- - bin/ssh_cloned
34
- - bin/clone_cooking
35
29
  homepage: http://rubygems.org/gems/virtualman
36
30
  licenses: []
37
31
  post_install_message:
@@ -1,31 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- ####Required
4
- require 'virtualman'
5
-
6
- cloned_vms = load_conf["cloned_vms"]
7
-
8
- cloned_vms.each do |vm|
9
- list << vm["name"]
10
- end
11
-
12
- puts "----Clone_Cooking----"
13
- puts "Which VM do you want to cook?"
14
-
15
- chocie = Menu.unic_run(list)
16
-
17
- selected_vm = Vm.new(choice)
18
-
19
- if !selected_vm.running?
20
- puts "#{selected_vm.name} is not running..."
21
- start_vm(selected_vm)
22
- if !selected_vm.running?
23
- puts "As you want.."
24
- return 1
25
- end
26
- end
27
-
28
- cmd = "ssh #{user}@#{selected_vm.ip}"
29
- exec (cmd)
30
-
31
- puts "Thanks!"
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- ####Required
4
- require 'virtualman'
5
-
6
- source_vms = load_conf["source_vms"]
7
-
8
- cloned_vm = clone_vm(source_vms)
9
-
10
- start_vm(cloned_vm)
11
-
12
- record_conf(cloned_vm)
@@ -1,42 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- ####Required
4
- require 'virtualman'
5
-
6
- cloned_vms = load_conf["cloned_vms"]
7
-
8
- cloned_vms.each do |vm|
9
- list << vm["name"]
10
- end
11
-
12
- puts "----SSH_cloned_VM----"
13
- puts "Which VM do you want to ssh?"
14
-
15
- chocie = Menu.unic_run(list)
16
-
17
- selected_vm = Vm.new(choice)
18
-
19
- puts "With which user? [root]"
20
- user = Menu.ask
21
-
22
- if user.empty?
23
- user = "root"
24
- end
25
-
26
- if !selected_vm.running?
27
- puts "#{selected_vm.name} is not running..."
28
- puts "Do you want to start it?"
29
- puts "yes/[no]"
30
- chocie = Menu.ask
31
- if choice == "yes"
32
- start_vm(selected_vm)
33
- else
34
- puts "As you want!"
35
- return 1
36
- end
37
- end
38
-
39
- cmd = "ssh #{user}@#{selected_vm.ip}"
40
- exec (cmd)
41
-
42
- puts "Thanks!"