class Bard::Provision::MasterKey

copy master key if missing

Public Instance Methods

call() click to toggle source
# File lib/bard/provision/masterkey.rb, line 6
def call
  print "Master Key:"
  if File.exist?("config/master.key")
    if !provision_server.run "[ -f config/master.key ]", quiet: true
      print " Uploading config/master.key,"
      Bard::Copy.new("config/master.key").scp_using_local(:to, provision_server)
    end
  end

  puts " ✓"
end