Sha256: df65e1a145ed8cff15d3c418b4ea1074e584b13317df3e7a8160607c90469e4d
Contents?: true
Size: 1.1 KB
Versions: 6
Compression:
Stored size: 1.1 KB
Contents
require_relative 'task_helper' namespace :dad do namespace :nginx do desc I18n.t('nginx.install') task :install do ask_env('NGINX_VERSION', default: Daddy::NGINX_VERSION) run_itamae 'nginx/install' end namespace :config do desc I18n.t('nginx.config.gitbucket') task :gitbucket do ENV['SERVER_NAME'] ||= ask('SERVER_NAME', :default => 'localhost', :required => true) ENV['PORT'] = ask('PORT', :default => '8081', :required => true) run_itamae 'nginx/config/gitbucket' end desc I18n.t('nginx.config.jenkins') task :jenkins do ENV['SERVER_NAME'] ||= ask('SERVER_NAME', :default => 'localhost', :required => true) run_itamae 'nginx/config/jenkins' end desc I18n.t('nginx.config.rails') task :rails do ENV['APP_NAME'] ||= app_name ENV['SERVER_NAME'] ||= ask('SERVER_NAME', :default => 'localhost', :required => true) ENV['RAILS_ENV'] ||= rails_env(:default => 'development') ENV['RAILS_ROOT'] ||= rails_root run_itamae 'nginx/config/rails' end end end end
Version data entries
6 entries across 6 versions & 1 rubygems