Chris Roberts
5003bb6e15
Updates to address all Ruby deprecations and warnings
...
This includes updates for resolving all warnings provided by Ruby
for deprecations and/or removed methods. It also enables support
for Ruby 2.7 in the specification constraint as all 2.7 related
warnings are resolved with this changeset.
2020-08-10 13:05:41 -07:00
sophia
39d7cd8997
Wrap all progress type outputs with rewriting to enable --no-tty
2020-04-03 16:28:59 -04:00
sophia
e6c387cdce
Refactor non interactive UI
2020-03-30 11:26:18 -04:00
sophia
0296e59baf
Use :ui_class opt to set ui class
2020-03-30 10:21:14 -04:00
sophia
d230272062
Add NonInteractive UI
2020-03-30 09:32:23 -04:00
sophia
baaaf8e7e6
Output report progress if show progress is enabled
2020-03-30 09:32:23 -04:00
sophia
d6d6e2c362
Surface cli option to quiet progress
2020-03-30 09:32:23 -04:00
sophia
c5a5b3d0b2
Yield output based on ui opts
2020-03-30 09:32:22 -04:00
Chris Roberts
318dca294a
Ensure empty message values are properly formatted
2019-10-15 08:54:24 -07:00
Chris Roberts
783f5fc65d
Update UI to properly retain newlines when adding prefix
...
When using a Prefixed UI instance prevent new line characters from
being removed when adding prefix formatting to output messages.
Fixes #11044
2019-10-14 16:56:40 -07:00
Chris Roberts
6f663edad0
Scrub sensitive information prior to message output
...
This provides a simple wrapper around all output to
scrub any strings that have been registered as sensitive
before being output. Also included is a small change
to the initial debug output to only show vagrant specific
environment variables and not the full user environment.
2017-12-14 15:38:31 -08:00
Chris Roberts
bfc2af4cf9
Always provide timeout on thread join to prevent deadlock errors
2017-03-27 12:58:39 -07:00
Seth Vargo
1166800b65
Use SSL and HTTPS links where appropriate
2016-01-25 13:14:54 -05:00
Mitchell Hashimoto
30d9e243bb
fix failing tests
2015-12-02 18:03:08 -08:00
Mitchell Hashimoto
cee517d963
core: fix machine readable UI to contain target and have proper format
2015-12-02 13:06:07 -08:00
Mitchell Hashimoto
104066c678
core: assume all windows shells now have TTYs
2015-11-23 09:10:33 -08:00
Mitchell Hashimoto
0ce636d1a3
core: avoid locking in trap context
2015-11-18 16:07:49 -08:00
Austin Schutz
96e4544949
use env.ui for action logging
2015-11-18 11:15:02 -08:00
Mitchell Hashimoto
dad5962ebb
hosts/darwin: support virtualbox install
2015-11-04 15:47:56 -08:00
Mitchell Hashimoto
32e981ce7c
core: machine-readable output should include standard UI output
...
As a "ui" type
2015-10-26 18:10:26 -07:00
Seth Vargo
b92d4b21a1
Add UI::Interface#color?
2015-06-01 11:49:09 -04:00
Dan Duvall
3b8bc2a433
core: allow IO redirection of UI for testing
...
Use of $stdin, $stdout, and $stderr globals makes testing difficult. By
exposing the IO objects as writable attributes, input/output can be more
easily simulated using StringIO or doubles.
2015-03-04 11:23:16 -08:00
Seth Vargo
d2874064f4
Use .key? instead of .has_key?
2015-01-05 18:29:01 -05:00
Kalman Hazins
bb052366f7
Change symbols inside hashes to 1.9 JSON-like syntax
2014-05-22 12:35:12 -04:00
Mitchell Hashimoto
68fe0b4258
core: Fix bug where if outputting empty string, would output nothing
2014-04-27 18:19:44 -07:00
Mitchell Hashimoto
8c7ab333a0
Squash the f-docker-hostmachine branch.
...
Initial work
commands/up: make sure all names to with_target_vms are strings
providers/docker: create a docker host VM if needed
providers/docker: executor abstraction for driver to eventually support remote
providers/docker: vagrant executor
providers/docker: support creating the machine
providers/docker: status works if host VM is gone
providers/docker: use start fence to get real docker output
core: Call preserves stack ordering
core: support Message post option
providers/docker: Guard some features with HasSSH checks
providers/docker: much better messaging around create/destroy
providers/docker: output the container ID on create
providers/docker: copy the hostmachine Vagrantfile to the data dir
providers/docker: should make host machine before any up action
providers/docker: HandleBox before the host machine
providers/virtualbox: functional_vboxsf to disable vboxsf
providers/virtualbox: synced folder usable method should take 2 args
providers/docker: default machine name to :default
2014-04-21 13:54:33 -07:00
Mitchell Hashimoto
eb9b85c388
core: UI#ask with no echo works even if noecho not supported [GH-3119]
2014-03-11 09:58:49 -07:00
Mitchell Hashimoto
7f2fe524b3
core: use default color by default (not white)
2014-03-05 10:19:53 -08:00
Mitchell Hashimoto
8bb0094113
Avoid locking in trap context
2014-02-23 22:22:18 -08:00
Mitchell Hashimoto
a4f64d0148
core: ui can hide details
2014-02-13 21:09:02 -08:00
Mitchell Hashimoto
342fba8182
core: Ui::Prefixed values instance-level opts
2014-02-08 15:15:06 -08:00
Mitchell Hashimoto
e6ca9d6f81
core: Ui::Prefixed can take prefix_spaces option
2014-02-08 15:14:21 -08:00
Mitchell Hashimoto
2d7c161f49
core: Ui#dup works properly
2014-02-08 15:11:51 -08:00
Mitchell Hashimoto
1e50e7aca1
core: Prefixed UI only requests bolding if not specified at instance-level
2014-02-08 14:26:26 -08:00
Mitchell Hashimoto
b194525521
core: output a newline after ask with no echo
2014-02-05 21:20:28 -08:00
Mitchell Hashimoto
1a7b78e00e
core: UI supports not echoing
2014-02-05 21:20:27 -08:00
Mitchell Hashimoto
b71cde6b99
core: make box add UI much icer
2014-02-05 21:19:44 -08:00
Mitchell Hashimoto
0e9cac5b07
core: clear line with \033[K
2014-01-23 13:22:10 -08:00
Mitchell Hashimoto
00530303fb
core: color success Ui green
2014-01-23 13:15:07 -08:00
Mitchell Hashimoto
06f1ebf752
core: add more tests for MachineReadable UI
2014-01-21 12:11:53 -08:00
Mitchell Hashimoto
f2f58655e8
core: get rid of more references to scope, old terminology
2014-01-21 12:06:04 -08:00
Mitchell Hashimoto
26366d0673
core: remove BasicScope class, not used anymore
2014-01-21 12:04:32 -08:00
Mitchell Hashimoto
a32e154e6e
core: use cleaner UI abstractions
2014-01-20 17:18:36 -08:00
Mitchell Hashimoto
fc86a10796
core: only bold when output is part of a machine
2014-01-20 16:37:06 -08:00
Mitchell Hashimoto
714c690d8b
Merge pull request #2857 from mitchellh/f-ui-revamp
...
UI revamp
2014-01-20 16:22:36 -08:00
Carlos López
8d1cc513ec
Fixed: dup string if frozen when formatting output for machine.
2014-01-19 14:34:32 +00:00
Mitchell Hashimoto
3f62addac2
core: make output white for now
2014-01-17 21:53:17 -08:00
Mitchell Hashimoto
0eec9aa599
core: extensive tests for Vagrant::UI classes
2014-01-17 21:31:07 -08:00
Mitchell Hashimoto
ac2ca2537d
core: Ui color should be red on errors, yellow on warnings
2014-01-17 21:03:05 -08:00
Mitchell Hashimoto
5b449c8000
providers/virtualbox: many detail level output
2014-01-17 21:03:00 -08:00