marhan_cli 0.0.12 → 0.0.13

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.
data/Changelog.md CHANGED
@@ -49,4 +49,8 @@
49
49
  ## v0.0.12
50
50
 
51
51
  * VirtualBox command connects automaticaly to ssh server, if guest configuration has 'ssh' connection data. (command => vbox:start)
52
- * 'VBoxManage controlvm ' uses 'acpipowerbutton' instead of 'poweroff', now. (command => vbox:stop)
52
+ * 'VBoxManage controlvm ' uses 'acpipowerbutton' instead of 'poweroff', now. (command => vbox:stop)
53
+
54
+ ## v0.0.13
55
+
56
+ * Configuration file will be used completely. 'SSH' configuration was ignored.
data/README.md CHANGED
@@ -31,8 +31,14 @@ Configuration file `~/.marhan_cli.yml` is used for several commands
31
31
  hdd: /dev/rdisk2s2
32
32
  vbox:
33
33
  guests:
34
- linux: Linux
35
- windows: Windows XP
34
+ linux:
35
+ name: Ubuntu Linux
36
+ ssh:
37
+ user: nameofuser
38
+ host: localhost
39
+ port: 2222
40
+ windows:
41
+ name: Windows XP
36
42
 
37
43
  ## Contributing
38
44
 
@@ -21,8 +21,8 @@ module MarhanCli
21
21
  end
22
22
 
23
23
  def guest_ssh_server_up?(guest_config_name)
24
- remote_machine = RemoteMachine.new("localhost", "2222")
25
- remote_machine.ssh_server_running?("markus")
24
+ remote_machine = RemoteMachine.new(@guests[guest_config_name].ssh.host, @guests[guest_config_name].ssh.port)
25
+ remote_machine.ssh_server_running?(@guests[guest_config_name].ssh.user)
26
26
  end
27
27
 
28
28
  def vbox_name(guest_config_name)
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module MarhanCli
3
- VERSION = "0.0.12"
3
+ VERSION = "0.0.13"
4
4
  end
@@ -7,7 +7,7 @@ vbox:
7
7
  linux:
8
8
  name: Ubuntu Linux
9
9
  ssh:
10
- user: markus
10
+ user: nameofuser
11
11
  host: localhost
12
12
  port: 2222
13
13
  windows:
@@ -42,7 +42,7 @@ describe "Config" do
42
42
  end
43
43
 
44
44
  it "with 'markus' for guests.linux.ssh.user" do
45
- vbox.guests.linux.ssh.user.should eq("markus")
45
+ vbox.guests.linux.ssh.user.should eq("nameofuser")
46
46
  end
47
47
 
48
48
  it "with 'nil' for guests.windows.ssh.nil?" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marhan_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: