Class: Envyable::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/envyable/cli.rb

Instance Method Summary collapse

Instance Method Details

#installObject



10
11
12
13
14
15
16
17
18
# File 'lib/envyable/cli.rb', line 10

def install
  create_file("config/env.yml")
  create_file("config/env.yml.example")
  if File.exists?("#{destination_root}/.gitignore")
    append_to_file(".gitignore") do
      "\n# Don't check in credentials \nconfig/env.yml"
    end
  end
end