Sha256: 50da71f75c111ad14a949dc9cc00de927c2fe390c71af2ca9781cb91f4174556

Contents?: true

Size: 815 Bytes

Versions: 10

Compression:

Stored size: 815 Bytes

Contents

namespace :slosilo do
  desc "Dump a public key"
  task :dump, [:name] => :environment do |t, args|
    args.with_defaults(:name => :own)
    puts Slosilo[args[:name]]
  end
  
  desc "Enroll a key"
  task :enroll, [:name] => :environment do |t, args|
    key = Slosilo::Key.new STDIN.read
    Slosilo[args[:name]] = key
    puts key
  end

  desc "Generate a key pair"
  task :generate, [:name] => :environment do |t, args|
    args.with_defaults(:name => :own)
    key = Slosilo::Key.new
    Slosilo[args[:name]] = key
    puts key
  end

  desc "Migrate to a new database schema"
  task :migrate => :environment do |t|
    Slosilo.adapter.migrate!
  end

  desc "Recalculate fingerprints in keystore"
  task :recalculate_fingerprints => :environment do |t|
    Slosilo.adapter.recalculate_fingerprints
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
slosilo-3.0.2.pre.224 lib/tasks/slosilo.rake
slosilo-3.0.2.pre.5 lib/tasks/slosilo.rake
slosilo-3.0.2.pre.44 lib/tasks/slosilo.rake
slosilo-3.0.2.pre.42 lib/tasks/slosilo.rake
slosilo-3.0.2.pre.2 lib/tasks/slosilo.rake
slosilo-3.0.2.pre.35 lib/tasks/slosilo.rake
slosilo-0.0.0 lib/tasks/slosilo.rake
slosilo-3.0.1 lib/tasks/slosilo.rake
slosilo-3.0.0 lib/tasks/slosilo.rake
slosilo-2.2.2 lib/tasks/slosilo.rake