Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ test/tmp
test/version_tmp
tmp
.vagrant
*.swo
*.swp
14 changes: 11 additions & 3 deletions lib/vagrant-host-shell/provisioner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,19 @@ def provision
:notify => [:stdout, :stderr],
:workdir => config.cwd
) do |io_name, data|
@machine.env.ui.info "[#{io_name}] #{data}"
options = {
new_line: false,
prefix: false,
}

color = io_name == :stdout ? :green : :red
options[:color] = color # if !config.keep_color
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented out postfix conditional here - is this part work in progress?


@machine.env.ui.info(data, options)
end

if config.abort_on_nonzero && !result.exit_code.zero?
raise VagrantPlugins::HostShell::Errors::NonZeroStatusError.new(config.inline, result.exit_code)
if config.abort_on_nonzero && !result.exit_code.zero?
raise VagrantPlugins::HostShell::Errors::NonZeroStatusError.new(config.inline, result.exit_code)
end

end
Expand Down
2 changes: 1 addition & 1 deletion lib/vagrant-host-shell/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module VagrantPlugins
module HostShell
VERSION = '0.0.4'
VERSION = '0.0.5pre'
end
end