lib/bitpay/cli_key_utils.rb
def retrieve_or_generate_pem
        begin
          pem = get_local_pem_file
        rescue
          pem = generate_pem
          write_pem_file pem
        end
        pem
      end
## Generates a new private key and writes to local FS
#
Generates a new private key and writes to local FS
Generates a new private key and writes to local FS
def retrieve_or_generate_pem
        begin
          pem = get_local_pem_file
        rescue
          pem = generate_pem
          write_pem_file pem
        end
        pem
      end
def retrieve_or_generate_pem begin pem = get_local_pem_file rescue pem = generate_pem write_pem_file pem end pem end
Generates a new private key and writes to local FS
Generates a new private key and writes to local FS