Sha256: 74e3afea3f32b4d2d3e7fe39ece071a0f1d9222a37a1702750d4897657922189
Contents?: true
Size: 605 Bytes
Versions: 2
Compression:
Stored size: 605 Bytes
Contents
require "cap-ssh-key-man/public_key_combiner" Capistrano::Configuration.instance(true).load do namespace :sshkey do desc "Sync keys to servers" task :deploy do puts "Creating authorized_keys file ..." CapSshKeyMan::PublicKeyCombiner.combine_developer_public_keys puts "Deploying authorized_keys ..." tmp_authorized_keys_path = File.join(".", "tmp", "authorized_keys") put File.read(tmp_authorized_keys_path), File.join("/home/#{user}", ".ssh", "authorized_keys") # delete temp file after use it. FileUtils.rm tmp_authorized_keys_path end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cap-ssh-key-man-1.2.1 | lib/cap-ssh-key-man/tasks/sync.rb |
cap-ssh-key-man-1.2.0 | lib/cap-ssh-key-man/tasks/sync.rb |