website: imageoptim

This commit is contained in:
Mitchell Hashimoto 2015-03-13 12:58:21 -07:00
parent c84a9bcaed
commit e473c655ac
23 changed files with 69 additions and 45 deletions

View File

@ -22,6 +22,14 @@ func (c *UnsealCommand) Run(args []string) int {
return 1
}
client, err := c.Client()
if err != nil {
c.Ui.Error(fmt.Sprintf(
"Error initializing client: %s", err))
return 2
}
fmt.Printf("Key (will be hidden): ")
value, err := password.Read(os.Stdin)
if err != nil {
c.Ui.Error(fmt.Sprintf(
@ -34,7 +42,23 @@ func (c *UnsealCommand) Run(args []string) int {
return 1
}
c.Ui.Output(value)
status, err := client.Sys().Unseal(strings.TrimSpace(value))
if err != nil {
c.Ui.Error(fmt.Sprintf(
"Error attempting unseal: %s", err))
return 1
}
c.Ui.Output(fmt.Sprintf(
"Sealed: %v\n"+
"Key Shares: %d\n"+
"Key Threshold: %d\n"+
"Unseal Progress: %d",
status.Sealed,
status.N,
status.T,
status.Progress,
))
return 0
}

BIN
website/source/assets/images/bg-icons.png (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
website/source/assets/images/hero.png (Stored with Git LFS)

Binary file not shown.

BIN
website/source/assets/images/hero@2x.png (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
website/source/assets/images/logo-icon.png (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.