image/files/boot/lib/ruby/boot/dropbear/setup.rb
# Generate host file and intall it.
Generate host file and intall it.
Generate host file and intall it .
def call
    make_directories
    confdir.join('host.key').tap do |host_key|
      (BOOT_FILES.fetch(:pem).file? ? :mv : :cp).tap do |m|
        fs.__send__(m, gen_key.to_s, host_key.to_s)
      end
      fs.chmod(0o400, host_key.to_s)
    end
  end
def call make_directories confdir . join ( 'host.key' ) . tap do | host_key | ( BOOT_FILES . fetch ( :pem ) . file? ? :mv : :cp ) . tap do | m | fs . __send__ ( m , gen_key . to_s , host_key . to_s ) end fs . chmod ( 0o400 , host_key . to_s ) end end
Generate host file and intall it.
Generate host file and intall it .
# move host.key when PEM file is present # because host.key has been generetaed from PEM file.