rails credentials:edit seems to open, save and encrypt before I do anything

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

rails credentials:edit seems to open, save and encrypt before I do anything

Pito Salas-3

$ rails credentials:edit


displays this immediately:


New credentials encrypted and saved.


Before my editor window even opens. And the window then always opens with a blank page.

Any idea whats going on? 

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8a5bdf5b-4526-4bf8-8593-5b04d3657743%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: rails credentials:edit seems to open, save and encrypt before I do anything

Hassan Schroeder-2
On Sun, Jul 1, 2018 at 7:30 PM, Pito <[hidden email]> wrote:

> $ rails credentials:edit
>
> displays this immediately:
>
> New credentials encrypted and saved.
>
> Before my editor window even opens. And the window then always opens with a
> blank page.
>
> Any idea whats going on?

19:31 ~/testcases/rails/rails-5-2/defaults:(scaffold-test)[ruby-2.5.1]$
rails credentials:edit
No $EDITOR to open file in. Assign one like this:

EDITOR="mate --wait" bin/rails credentials:edit

For editors that fork and exit immediately, it's important to pass a wait flag,
otherwise the credentials will be saved immediately with no chance to edit.
19:31 ~/testcases/rails/rails-5-2/defaults:(scaffold-test)[ruby-2.5.1]$

What editor are you using?

--
Hassan Schroeder ------------------------ [hidden email]
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDbe_r9dB_eVZHWgXfh1i86icK%3DWqVhTh9cwFviWhyJOQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: rails credentials:edit seems to open, save and encrypt before I do anything

Pito Salas-3
Thanks. I am using vscode. But your suggestion worked as is for it too. Thank you!

On Sunday, July 1, 2018 at 10:36:06 PM UTC-4, Hassan Schroeder wrote:
On Sun, Jul 1, 2018 at 7:30 PM, Pito <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="L_2VLtmVAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">pito...@...> wrote:

> $ rails credentials:edit
>
> displays this immediately:
>
> New credentials encrypted and saved.
>
> Before my editor window even opens. And the window then always opens with a
> blank page.
>
> Any idea whats going on?

19:31 ~/testcases/rails/rails-5-2/defaults:(scaffold-test)[ruby-2.5.1]$
rails credentials:edit
No $EDITOR to open file in. Assign one like this:

EDITOR="mate --wait" bin/rails credentials:edit

For editors that fork and exit immediately, it's important to pass a wait flag,
otherwise the credentials will be saved immediately with no chance to edit.
19:31 ~/testcases/rails/rails-5-2/defaults:(scaffold-test)[ruby-2.5.1]$

What editor are you using?

--
Hassan Schroeder ------------------------ <a href="javascript:" target="_blank" gdf-obfuscated-mailto="L_2VLtmVAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">hassan.s...@...
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ba80a1e8-3a00-4819-96d8-2e6851ccfc3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.