module Arcanus::Command::Shared::EnsureKey
Public Instance Methods
ensure_key_unlocked()
click to toggle source
Ensures the key is unlocked
# File lib/arcanus/command/shared/ensure_key.rb, line 4 def ensure_key_unlocked if !repo.has_locked_key? execute_command(%w[setup]) ui.newline elsif !repo.has_unlocked_key? execute_command(%w[unlock]) ui.newline end end