Class: RailsCredentialsGit::CLI
- Inherits:
-
Thor
- Object
- Thor
- RailsCredentialsGit::CLI
- Includes:
- Thor::Actions
- Defined in:
- lib/rails-credentials-git/cli.rb
Instance Method Summary collapse
Instance Method Details
#install ⇒ Object
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 |