Sha256: ab03cddc9aef825ae4d6c1ae25dc20c3aec9ee0704c286f1c9a87ed310553915
Contents?: true
Size: 1.46 KB
Versions: 6
Compression:
Stored size: 1.46 KB
Contents
require 'thor' require 'foreplay' require 'foreplay/setup' class Foreplay::CLI < Thor desc 'deploy ENVIRONMENT', 'Deploys to specified environment' method_option :role, aliases: '-r' method_option :server, aliases: '-s' method_option :config_file, aliases: '-f' def deploy(environment) Foreplay::Launcher.start [:deploy, environment, options] end desc 'check ENVIRONMENT', 'Checks if configuration is OK for specified environment' method_option :role, aliases: '-r' method_option :server, aliases: '-s' method_option :config_file, aliases: '-f' def check(environment) Foreplay::Launcher.start [:check, environment, options] end desc 'setup', 'Create the Foreplay config file' method_option :name, aliases: '-n' method_option :repository, aliases: '-r' method_option :user, aliases: '-u' method_option :password method_option :keyfile method_option :private_key, aliases: '-k' method_option :path, aliases: '-f' method_option :port, aliases: '-p', type: :numeric method_option :servers, aliases: '-s', type: :array method_option :db_adapter, aliases: '-a' method_option :db_encoding, aliases: '-e' method_option :db_name, aliases: '-d' method_option :db_pool, type: :numeric method_option :db_host, aliases: '-h' method_option :db_user method_option :db_password method_option :resque_redis def setup Foreplay::Setup.start end end
Version data entries
6 entries across 6 versions & 1 rubygems