// In the future we'll remove the dedicated install once the synchronous load feature in hab-sup is
// available. Until then we install here to provide output and a noisy failure mechanism because
// if you install with the pkg load, it occurs asynchronously and fails quietly.
In the future we'll remove the dedicated install once the synchronous load feature in hab-sup is
available. Until then we install here to provide output and a noisy failure mechanism because
if you install with the pkg load, it occurs asynchronously and fails quietly.
// In the future we ' ll remove the dedicated install once the synchronous load feature in hab - sup is // available . Until then we install here to provide output and a noisy failure mechanism because // if you install with the pkg load it occurs asynchronously and fails quietly .
func (p *provisioner) linuxInstallHabitatPackage(o terraform.UIOutput, comm communicator.Communicator, service Service) error {
	var options string
	if service.Channel != "" {
		options += fmt.Sprintf(" --channel %s", service.Channel)
	}
	if service.URL != "" {
		options += fmt.Sprintf(" --url %s", service.URL)
	}
	return p.runCommand(o, comm, p.linuxGetCommand(fmt.Sprintf("hab pkg install %s %s", service.Name, options)))
}
func ( p * provisioner ) linuxInstallHabitatPackage ( o terraform . UIOutput , comm communicator . Communicator , service Service ) error { var options string if service . Channel != " " { options += fmt . Sprintf ( " " , service . Channel ) } if service . URL != " " { options += fmt . Sprintf ( " " , service . URL ) } return p . runCommand ( o , comm , p . linuxGetCommand ( fmt . Sprintf ( " " , service . Name , options ) ) ) }
In the future we'll remove the dedicated install once the synchronous load feature in hab-sup is
available.
In the future we ' ll remove the dedicated install once the synchronous load feature in hab - sup is available .