This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: switch back to public onboarding
This was left-over from a HashiCorp internal beta program. Fixes #623
- Loading branch information
Showing
4 changed files
with
82 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
import Route from '@ember/routing/route'; | ||
// import { UAParser } from 'ua-parser-js'; | ||
import { UAParser } from 'ua-parser-js'; | ||
|
||
export default class OnboardingInstallIndex extends Route { | ||
// redirect() { | ||
// const parser = new UAParser(); | ||
// | ||
// switch (parser.getResult().os.name) { | ||
// case 'Mac OS': | ||
// return this.transitionTo('onboarding.install.homebrew'); | ||
// case 'Windows': | ||
// return this.transitionTo('onboarding.install.chocolatey'); | ||
// case 'Debian': | ||
// case 'Ubuntu': | ||
// return this.transitionTo('onboarding.install.linux.ubuntu'); | ||
// case 'CentOS': | ||
// return this.transitionTo('onboarding.install.linux.centos'); | ||
// case 'Fedora': | ||
// return this.transitionTo('onboarding.install.linux.fedora'); | ||
// default: | ||
// return this.transitionTo('onboarding.install.manual'); | ||
// } | ||
// } | ||
redirect() { | ||
const parser = new UAParser(); | ||
|
||
switch (parser.getResult().os.name) { | ||
case 'Mac OS': | ||
return this.transitionTo('onboarding.install.homebrew'); | ||
case 'Windows': | ||
return this.transitionTo('onboarding.install.chocolatey'); | ||
case 'Debian': | ||
case 'Ubuntu': | ||
return this.transitionTo('onboarding.install.linux.ubuntu'); | ||
case 'CentOS': | ||
return this.transitionTo('onboarding.install.linux.centos'); | ||
case 'Fedora': | ||
return this.transitionTo('onboarding.install.linux.fedora'); | ||
default: | ||
return this.transitionTo('onboarding.install.manual'); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
<p>To install Waypoint, find the <ExternalLink href="https://go.hashi.co/waypoint-beta-binaries">appropriate package</ExternalLink> for your system and download it. Waypoint is packaged as a zip archive.</p> | ||
|
||
<p>After downloading Waypoint, unzip the package. Waypoint runs as a single binary named <code>waypoint</code>. Any other files in the package can be safely removed and Waypoint will still function.</p> | ||
|
||
<p>Make sure that the <code>waypoint</code> binary is available on your <code>PATH</code>. You can check the locations available on your path by running this command.</p> | ||
|
||
<CopyableCode @ref="echo-path"> | ||
<pre><code id="echo-path">echo $PATH</code></pre> | ||
</CopyableCode> | ||
|
||
<pre><code class="output">/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</code></pre> | ||
|
||
<p>The output is a list of locations separated by colons. You can make Waypoint available by moving the binary to one of the listed locations, or by adding Waypoint's location to your <code>PATH</code>.</p> | ||
|
||
<div class="onboarding-tip"> | ||
<p><b>Tip (Linux-based or Mac):</b> Permanently add a new location to your path by editing your shell's settings file (usually called something like <code>~/.bashrc</code>, where the part of the file name after the <code>.</code> and before <code>rc</code> is the name of your shell). In that file you will see a line that starts with export <code>PATH=</code>, followed by a colon-separated list of locations. Add the location of the Waypoint binary to that list and save the file. Then reload your shell's configuration with the command source <code>~/.bashrc</code>, replacing <code>bash</code> with the name of your shell.</p> | ||
</div> | ||
|
||
<div class="onboarding-tip"> | ||
<p><b>Tip (Windows):</b> Add a location to your path via the GUI by navigating to <code>Environment Variables</code> in your system settings, and looking for the variable called <code>PATH</code>. You will see a semicolon-separated list of locations. Add the Waypoint binary's location to that list and then launch a new console window.</p> | ||
</div> | ||
<p>To install Waypoint, find the <ExternalLink href="https://releases.hashicorp.com/waypoint/">appropriate package | ||
</ExternalLink> for your system and download it. Waypoint is packaged as a zip archive.</p> | ||
|
||
<p>After downloading Waypoint, unzip the downloaded archive. Waypoint runs as a single binary named | ||
<code>waypoint</code>. It is recommended that you move it to a directory in your <code>PATH</code> | ||
to allow you to execute it from any directory. | ||
</p> | ||
|
||
<p>For example:</p> | ||
<p> | ||
<code class="output">$ mv ~/Downloads/waypoint /usr/local/bin/</code> | ||
</p> | ||
<p><strong>Note:</strong> Due to the Waypoint beta currently being private, Homebrew, Linux packages, and Chocolatey | ||
installation methods are not yet available. | ||
</p> |