Sha256: 09f1c4891a49a056792093199d0f040a88770083f86d2a32e9aad0bfa5f76e12

Contents?: true

Size: 1.04 KB

Versions: 13

Compression:

Stored size: 1.04 KB

Contents

require 'thor/group'

module Foreplay
  class Setup < Thor::Group
    include Thor::Actions

    class_option :name,         aliases: '-n', default: File.basename(Dir.getwd)
    class_option :repository,   aliases: '-r'
    class_option :user,         aliases: '-u'
    class_option :password
    class_option :keyfile
    class_option :private_key,  aliases: '-k'
    class_option :port,         aliases: '-p', default: 50_000
    class_option :path,         aliases: '-f'
    class_option :servers,      aliases: '-s', type: :array
    class_option :db_adapter,   aliases: '-a', default: 'postgresql'
    class_option :db_encoding,  aliases: '-e', default: 'utf8'
    class_option :db_pool,                     default: 5
    class_option :db_name,      aliases: '-d'
    class_option :db_host,      aliases: '-h'
    class_option :db_user
    class_option :db_password
    class_option :resque_redis

    def self.source_root
      File.dirname(__FILE__)
    end

    def config
      template('setup/foreplay.template.yml', 'config/foreplay.yml')
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
foreplay-0.17.0 lib/foreplay/setup.rb
foreplay-0.16.0 lib/foreplay/setup.rb
foreplay-0.15.4 lib/foreplay/setup.rb
foreplay-0.15.2 lib/foreplay/setup.rb
foreplay-0.15.1 lib/foreplay/setup.rb
foreplay-0.15.0 lib/foreplay/setup.rb
foreplay-0.13.5 lib/foreplay/setup.rb
foreplay-0.13.4 lib/foreplay/setup.rb
foreplay-0.13.3 lib/foreplay/setup.rb
foreplay-0.13.2 lib/foreplay/setup.rb
foreplay-0.13.1 lib/foreplay/setup.rb
foreplay-0.13.0 lib/foreplay/setup.rb
foreplay-0.11.2 lib/foreplay/setup.rb