Method: Subspace::Commands::Vars#run

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

#runObject



15
16
17
18
19
20
21
22
23
24
# File 'lib/subspace/commands/vars.rb', line 15

def run
  case @action
  when "create"
    create_local
  when "view", "edit"
    ansible_command "ansible-vault", @action, "vars/#{@environment}.yml"
  else
    abort "Invalid vars command"
  end
end