Class: SecretHub::Commands::Save

Inherits:
Base
  • Object
show all
Defined in:
lib/secret_hub/commands/save.rb

Instance Method Summary collapse

Methods inherited from Base

#github

Instance Method Details

#runObject



15
16
17
18
19
20
21
22
# File 'lib/secret_hub/commands/save.rb', line 15

def run
  repo = args['REPO']
  key = args['KEY']
  value = args['VALUE']
  
  github.put_secret repo, key, value
  say "Saved !txtblu!#{repo} !txtpur!#{key}"
end