require_relative 'cli' class Fanforce::AppFactory::CLI::Scripts ######################################################################################################################## Fanforce::CLI.register(self, :status, ['all/TYPE', 'Check the status of files, git, and gems'], ['files *overview/diff', 'Check for file diffs between app_factory scaffolding'], ['git', 'Check the status of git commit'], # ['gems', 'Check if the gem versions are behind other apps'] ) { require_relative 'cli/scripts/status' } ######################################################################################################################## Fanforce::CLI.register(self, :setup, ['all/TYPE', 'Setup bundle, pow, git, and env variables'], ['bundler', 'Ensure bundler is installed then run bundle'], ['pow', 'Ensure pow domains are setup correctly'], ['git', 'Ensure git repository is initialized'], ['env', 'Create ENV variables from local .env folder'], ['uranium', 'Register config.json with uranium and add environ'] ) { require_relative 'cli/scripts/setup' } ######################################################################################################################## Fanforce::CLI.register(self, :update, ['all/TYPE', 'Update all app files and env variables'], ['files', 'Copy the latest scaffolding files from fanforce-app-factory'], ['env', 'Create ENV variables from your local .env folder'] ) { require_relative 'cli/scripts/update' } ######################################################################################################################## Fanforce::CLI.register(self, :push, ['RACK_ENV all/TYPE', 'Push everything to the selected environment'], # ['RACK_ENV env', 'Setup the correct ENV variables in selected environment'], # ['RACK_ENV heroku', 'Create heroku app (if needed) and push latest commit'], ['RACK_ENV iron', 'Upload iron workers to selected environment'] ) { require_relative 'cli/scripts/push' } ######################################################################################################################## Fanforce::CLI.register(self, :restart, #['*development/RACK_ENV/all', 'Runs `touch tmp/restart` if development or else `heroku restart`'] ['*development', 'Runs `touch tmp/restart` if development or else `heroku restart`'] ) { require_relative 'cli/scripts/restart' } end