Sha256: 1525e8d80f776b40223d8884732e89cac8c3b306d5cba9e1c94184b0b6cb0a30
Contents?: true
Size: 477 Bytes
Versions: 5
Compression:
Stored size: 477 Bytes
Contents
require 'handsome_fencer/circle_c_i/crypto' module HandsomeFencer module CircleCI class DeployKeyGenerator < Rails::Generators::Base source_root File.expand_path('templates', __dir__) desc "generate deploy key" def generate_deploy_key @cipher = OpenSSL::Cipher.new 'AES-128-CBC' @salt = '8 octets' @new_key = @cipher.random_key create_file ".circleci/deploy.key", Base64.encode64(@new_key) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems