knife -> bundle exec knife
This commit is contained in:
parent
73a68455bd
commit
e8677efc69
@ -73,7 +73,7 @@ EOH
|
||||
end
|
||||
|
||||
def knife cmd
|
||||
o = `knife #{cmd} -c #{self.config} 2>&1`
|
||||
o = `bundle exec knife #{cmd} -c #{self.config} 2>&1`
|
||||
return o, $?.success?
|
||||
end
|
||||
|
||||
@ -82,7 +82,7 @@ EOH
|
||||
end
|
||||
|
||||
def ssh_stream out, cmd, host, user, cert
|
||||
knife_cmd = "knife ssh -c #{self.config} #{ssh_options(cmd, host, user, cert).join(" ")}"
|
||||
knife_cmd = "bundle exec knife ssh -c #{self.config} #{ssh_options(cmd, host, user, cert).join(" ")}"
|
||||
out << "\nExecuting '#{knife_cmd}' \n\n"
|
||||
out.flush if out.respond_to?(:flush)
|
||||
status = 2
|
||||
@ -103,7 +103,7 @@ EOH
|
||||
end
|
||||
|
||||
def knife_stream out, cmd, options=[]
|
||||
knife_cmd = "knife #{cmd} #{options.join(" ")} -c #{self.config}"
|
||||
knife_cmd = "bundle exec knife #{cmd} #{options.join(" ")} -c #{self.config}"
|
||||
out << "\nExecuting '#{knife_cmd}' \n\n"
|
||||
out.flush if out.respond_to?(:flush)
|
||||
status = nil
|
||||
|
||||
Loading…
Reference in New Issue
Block a user