Class: RailsCredentialsGit::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/rails-credentials-git/cli.rb

Instance Method Summary collapse

Instance Method Details

#installObject



12
13
14
15
16
17
# File 'lib/rails-credentials-git/cli.rb', line 12

def install
  copy_file "lib/rails-credentials-git/templates/enc", "bin/enc", mode: :preserve

  method = RailsCredentialsGit.decrypt_method.sub("self.", "")
  insert_into_file "bin/enc", "\n#{method}" , after: %{require "openssl"\n}
end