Sha256: 3ca7428b7fa7053d9cb369295a953a7ba00e174e181e1454479c557b742f7200
Contents?: true
Size: 1.1 KB
Versions: 3
Compression:
Stored size: 1.1 KB
Contents
require_relative 'task_helper' namespace :dad do desc I18n.t('nginx.install') task :nginx do ask_env('NGINX_VERSION', default: ItamaePluginRecipeDaddy::NGINX_VERSION) run_itamae 'nginx' end namespace :nginx do 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
daddy-0.7.9 | lib/tasks/nginx.rake |
daddy-0.7.8 | lib/tasks/nginx.rake |
daddy-0.7.7 | lib/tasks/nginx.rake |