virtualman 1.1.1 → 1.1.2

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 (2) hide show
  1. data/lib/virtualman/interractive.rb +6 -2
  2. metadata +1 -1
@@ -1,4 +1,4 @@
1
- #require 'lib/virtualman'
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
- `#{cmd}`
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!"
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.1
4
+ version: 1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: