Method: Subspace::Commands::Secrets#initialize

Defined in:
lib/subspace/commands/secrets.rb

#initialize(args, options) ⇒ Secrets

Returns a new instance of Secrets.



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/subspace/commands/secrets.rb', line 2

def initialize(args, options)
  if args.first == "rekey"
    rekey
  else
    @environment = args.first
    @action = if options.edit
      "edit"
    elsif options.create
      "create"
    else
      "view"
    end

    run
  end
end