
KEYS_DIR_NAME = './keys'
PRIVATE_KEY_FILE = '{}/opsimulate'.format(KEYS_DIR_NAME)
PUBLIC_KEY_FILE = '{}/opsimulate.pub'.format(KEYS_DIR_NAME)

SERVICE_ACCOUNT_FILE = 'service-account.json'

ZONE = 'us-east4-a'
MACHINE_TYPE = 'n1-standard-1'
UBUNTU_VERSION = 'ubuntu-1404-lts'
INSTANCE_NAME = 'opsimulate-gitlab'
VM_USERNAME = 'opsimulate'


import os

HOME = os.path.expanduser("~")
OPSIMULATE_HOME = os.path.join(HOME, '.opsimulate')

KEYS_DIR_NAME = os.path.join(OPSIMULATE_HOME, 'keys')
PRIVATE_KEY_FILE = os.path.join(KEYS_DIR_NAME, 'opsimulate')
PUBLIC_KEY_FILE = os.path.join(KEYS_DIR_NAME, 'opsimulate.pub')

SERVICE_ACCOUNT_FILE = os.path.join(OPSIMULATE_HOME, 'service-account.json')

ZONE = 'us-east4-a'
MACHINE_TYPE = 'n1-standard-1'
UBUNTU_VERSION = 'ubuntu-1404-lts'
INSTANCE_NAME = 'opsimulate-gitlab'
VM_USERNAME = 'opsimulate'

Install keys and service-account.json in ~/.opsimulate directory
Install keys and service-account.json in ~/.opsimulate directory

- This ensures that opsimulate can be ran as a regular pip installed
  CLI tool and not just via pip -e or direct script invocation

  
+ import os
- KEYS_DIR_NAME = './keys'
- PRIVATE_KEY_FILE = '{}/opsimulate'.format(KEYS_DIR_NAME)
- PUBLIC_KEY_FILE = '{}/opsimulate.pub'.format(KEYS_DIR_NAME)
  
- SERVICE_ACCOUNT_FILE = 'service-account.json'
+ HOME = os.path.expanduser("~")
+ OPSIMULATE_HOME = os.path.join(HOME, '.opsimulate')
+ 
+ KEYS_DIR_NAME = os.path.join(OPSIMULATE_HOME, 'keys')
+ PRIVATE_KEY_FILE = os.path.join(KEYS_DIR_NAME, 'opsimulate')
+ PUBLIC_KEY_FILE = os.path.join(KEYS_DIR_NAME, 'opsimulate.pub')
+ 
+ SERVICE_ACCOUNT_FILE = os.path.join(OPSIMULATE_HOME, 'service-account.json')
  
  ZONE = 'us-east4-a'
  MACHINE_TYPE = 'n1-standard-1'
  UBUNTU_VERSION = 'ubuntu-1404-lts'
  INSTANCE_NAME = 'opsimulate-gitlab'
  VM_USERNAME = 'opsimulate'
  
Install keys and service-account.json in ~/.opsimulate directory
## Code Before:

KEYS_DIR_NAME = './keys'
PRIVATE_KEY_FILE = '{}/opsimulate'.format(KEYS_DIR_NAME)
PUBLIC_KEY_FILE = '{}/opsimulate.pub'.format(KEYS_DIR_NAME)

SERVICE_ACCOUNT_FILE = 'service-account.json'

ZONE = 'us-east4-a'
MACHINE_TYPE = 'n1-standard-1'
UBUNTU_VERSION = 'ubuntu-1404-lts'
INSTANCE_NAME = 'opsimulate-gitlab'
VM_USERNAME = 'opsimulate'

## Instruction:
Install keys and service-account.json in ~/.opsimulate directory
## Code After:

import os

HOME = os.path.expanduser("~")
OPSIMULATE_HOME = os.path.join(HOME, '.opsimulate')

KEYS_DIR_NAME = os.path.join(OPSIMULATE_HOME, 'keys')
PRIVATE_KEY_FILE = os.path.join(KEYS_DIR_NAME, 'opsimulate')
PUBLIC_KEY_FILE = os.path.join(KEYS_DIR_NAME, 'opsimulate.pub')

SERVICE_ACCOUNT_FILE = os.path.join(OPSIMULATE_HOME, 'service-account.json')

ZONE = 'us-east4-a'
MACHINE_TYPE = 'n1-standard-1'
UBUNTU_VERSION = 'ubuntu-1404-lts'
INSTANCE_NAME = 'opsimulate-gitlab'
VM_USERNAME = 'opsimulate'
