Sha256: 334512b68709f8ffbf27ed635d684c1ad21351934595edc0440785365d221366

Contents?: true

Size: 388 Bytes

Versions: 7

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

module Roro
  class CLI < Thor
    desc 'generate:keys', 'Generates a key for each <environment>.smart.env file.'

    map 'generate:keys'  => 'generate_keys'
    map 'generate:key'   => 'generate_keys'

    def generate_keys(*environments)
      key_writer = Roro::Crypto::KeyWriter.new
      key_writer.write_keyfiles(environments.uniq)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
roro-0.3.33 lib/roro/cli/generate/generate_keys.rb
roro-0.3.30 lib/roro/cli/generate/generate_keys.rb
roro-0.3.28 lib/roro/cli/generate/generate_keys.rb
roro-0.3.27 lib/roro/cli/generate/generate_keys.rb
roro-0.3.25 lib/roro/cli/generate/generate_keys.rb
roro-0.3.24 lib/roro/cli/generate/generate_keys.rb
roro-0.3.23 lib/roro/cli/generate/generate_keys.rb