Commit Graph

59 Commits (d-powershell-generated-docs)

Author SHA1 Message Date
Adrien Delorme 9f82b75e57 Use the hashicorp/go-getter to download files
7 years ago
Adrien Delorme 541c68aed5 add StackableProgressBar struct that will refresh/show dl status for multiple files
8 years ago
Adrien Delorme ddd96c513b first draft at self refreshing loading bar centralized/controlled by Ui
8 years ago
Megan Marsh 1f79b430ee
Merge pull request #6610 from hashicorp/filter_logs
8 years ago
Ali Rizvi-Santiago 0f10032b3d Moved the progress bar from common to the packer.UI interface and refactored it so that the terminal width is calculated based on each interface which returns a custom progressbar specific to its ui.
8 years ago
Ali Rizvi-Santiago 16ecb3ad9a Reverted removal of progress-bar that was done by commit 5d97b105a8 and added some missing arguments that were missed during the rebase. Modified the default progress bar's width to 80 as a result of the conversation on PR #5851.
8 years ago
Megan Marsh ff6a039d5b replace scrubconfig with packer.LogSecretFilter.Set
8 years ago
Ali Rizvi-Santiago c366a1e160 Inverted the logic of FileExistsLocally as suggested by @SwampDragons as remote URLs are assumed to exist locally.
8 years ago
Ali Rizvi-Santiago c98a074f0d Renamed common/config.go's SupportedURL to SupportedProtocol as suggested by @SwampDragons.
8 years ago
Ali Rizvi-Santiago 97fc9c02a5 Grr...missed the case that actually mattered on linux.
8 years ago
Ali Rizvi-Santiago f9572cb244 Fixed a bug on linux related to forgetting to check the platform for the forward-slash prefix.
8 years ago
Ali Rizvi-Santiago 41f4dc3f3d umm...gofmt -w on common/config{,_test}.go from linux instead of windows(?)
8 years ago
Ali Rizvi-Santiago 7cd5d576d9 Updated common/config.go's FileExistsLocally implementation to use the LocalDownloader interface for determining the real file path.
8 years ago
Ali Rizvi-Santiago 8a102a42a0 gofmt -w on common/config{,_test}.go
8 years ago
Ali Rizvi-Santiago 95f60f6153 Modified common/config.go to accommodate some of the new DownloadableURL policies made by the PR #5761 merge.
8 years ago
Ali Rizvi-Santiago 50e9cd2ca7 Initial fixes of common/config.go after rebase before refactoring of test-cases so that they don't require root to run.
8 years ago
Ali Rizvi-Santiago c17f827e1d Split up DownloadableURL() into it's individual components: SupportedURL(), DownloadableURL(), and ValidatedURL(). Updated all instances of DownloadableURL() to point to ValidatedURL(). Reverted the tests that are based on un-supported protocols.
8 years ago
Ali Rizvi-Santiago 5d97b105a8 Removed implementation of the ftp protocol and the usage of cheggaaa's progress-bar as suggested by @SwampDragons. Replaced some of the old smoke-tests that were based on the ftp-protocol non-existing with a "non-existent://" protocol that's guaranteed to not exist.
8 years ago
Ali Rizvi-Santiago b1ff14714b go fmt
8 years ago
Ali Rizvi-Santiago 2f1104625d Fixed some of the unit-tests in common/ due to the changes made in {config,download}.go
8 years ago
Ali Rizvi-Santiago 6170e24ecb Refactored the code a bit to move the CopyFile hack out of DownloadClient and instead into each protocol.
8 years ago
Ali Rizvi-Santiago 281dd1258a Added proper support for downloading via a Windows UNC path or a relative uri.
8 years ago
Megan Marsh 3ace5bb91b simplify FileExistsLocally
8 years ago
Megan Marsh 55ddbf4765 sloppy copypasta
8 years ago
Megan Marsh 898dadd53c re-add this block. I still don't think we need it but I don't want to risk breaking things with this bugfix.
8 years ago
Megan Marsh 40f0cc6dfe I don't think this is needed anymore
8 years ago
Megan Marsh 2838a2371d disambiguate url variable from url library
8 years ago
Megan Marsh 216c44b153 fix FileExistsLocally
8 years ago
Megan Marsh 4f3b470804 add helper function to manage validation of filepaths created using DownloadableURL
8 years ago
Megan Marsh 54bd057bb9 fix nasty edge case where we can't find guest additions on windows if they are on a different drive
8 years ago
Megan Marsh 0efcb1bba2 dont error in the downloadableURL function; save validation for preflight steps
8 years ago
Megan Marsh 3a9dfb5b18 better
8 years ago
Megan Marsh e45a006d61 clearly state that url is wrong at validation stage of build
8 years ago
Chris Bednarski ee2d636840 Improve delay between key events
9 years ago
Mitchell Hashimoto 1e853f9f1f common: revert some changes from #2121 for Windows
11 years ago
Mitchell Hashimoto 44008c321b Merge pull request #2121 from josharian/no-scrub-empty
11 years ago
Mitchell Hashimoto adb6b43dd8 common: remove unused config methods
11 years ago
Josh Bleecher Snyder 2fe785ed35 common: remove dead code
11 years ago
Josh Bleecher Snyder 76c8cfd498 common: don't scrub ""
11 years ago
Grégoire Pineau 97c56347a1 Better error reporting when a config key in template is Unknown
11 years ago
Mitchell Hashimoto 5c5d62733f fmt
12 years ago
Mitchell Hashimoto 5cd2cfa563 comment so future-mitchell knows what I've done
12 years ago
Mitchell Hashimoto ba05119a75 common: user variable conversion to non-string types works [GH-1079]
12 years ago
Mitchell Hashimoto d5981c69f2 common: config strings to slices [GH-950]
12 years ago
Mitchell Hashimoto 5dec2ddb9c common: weakly decode the PackerConfig
12 years ago
Mitchell Hashimoto 5fac6c79c4 fmt
12 years ago
Mitchell Hashimoto 8395d0e97a common: tests for ChooseSTring
12 years ago
Mitchell Hashimoto 7191c1f250 common: Fix URL parsing issues on Windows
12 years ago
Devin Carlen bef63846af Add support for standard OpenStack environment variables
12 years ago
Mitchell Hashimoto 4c6800f5a3 common: process user variables in non-string config decodes [GH-598]
12 years ago