Class: Krb::Setup::GitIgnore

Inherits:
ApplicationService show all
Defined in:
lib/krb/setup/git_ignore.rb

Overview

Sets up configuration

Instance Method Summary collapse

Methods inherited from ApplicationService

process, #prompt, #setup_file_name, #setup_file_path, #verify_admin, #verify_production, #verify_setup

Instance Method Details

#processObject



7
8
9
10
11
# File 'lib/krb/setup/git_ignore.rb', line 7

def process
  return if has_gitignore? && is_ignored?
  add_gitignore unless has_gitignore?
  write_to_gitignore unless is_ignored?
end