virtualman 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/virtualman/interractive.rb +6 -2
- metadata +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
require 'open3'
|
2
2
|
|
3
3
|
def choosed_option(array,choice,attribute_to_check)
|
4
4
|
array.each_with_index do |option,index|
|
@@ -96,7 +96,11 @@ def cook
|
|
96
96
|
if start_vm(selected_vm)
|
97
97
|
cmd = "ssh #{user}@#{selected_vm.ip} '/usr/local/bin/chef-solo -j #{role_path}#{role}.json -r #{cookbook_path}'"
|
98
98
|
p cmd
|
99
|
-
|
99
|
+
system(cmd)
|
100
|
+
#$stdin, $stdout, $stderr = Open3.popen3(cmd)
|
101
|
+
#$stdout.gets
|
102
|
+
#$stderr.gets
|
103
|
+
#{}`#{cmd}`
|
100
104
|
end
|
101
105
|
|
102
106
|
puts "Thanks!"
|