Class: Luban::Deployment::Application::Configurator
- Inherits:
-
Worker
- Object
- Worker::Base
- Worker
- Luban::Deployment::Application::Configurator
- Includes:
- Service::Configurator::Base
- Defined in:
- lib/luban/deployment/cli/application/configurator.rb
Constant Summary
Constants included from Parameters::Application
Parameters::Application::DefaultLogrotateInterval, Parameters::Application::DefaultLogrotateMaxAge
Constants included from Parameters::General
Parameters::General::DefaultLubanRootPath
Constants included from Helpers::Utils
Instance Attribute Summary
Attributes inherited from Worker::Base
Attributes included from Helpers::Utils
Attributes included from Helpers::Configuration
Instance Method Summary collapse
Methods included from Service::Configurator::Base
#available_profile_templates, #default_templates, #exclude_template?, #excluded_profile_templates, #init_profile, #profile_templates, #profile_templates_path, #stage_profile_path, #stage_profile_templates_path, #update_profile
Methods inherited from Worker
#bundle_command, #bundle_executable, #gemfile, #has_gemfile?, #profile_name, #release_path, #release_tag, #releases_path, #ruby_bin_path, #shell_setup
Methods included from Service::Worker::Base
#control_file_name, #control_file_path, #log_file_name, #log_file_path, #log_path, #output_redirection, #pid_file_name, #pid_file_path, #pids_path, #profile_name, #profile_path, #service_entry, #shell_command, #shell_delimiter, #shell_output, #shell_prefix, #shell_setup
Methods included from Worker::Paths::Remote
#app_archives_path, #app_bin_path, #app_path, #app_tmp_path, #archived_logs_path, #archives_path, #current_app_path, #downloads_path, #env_path, #envrc_file, #luban_install_path, #package_bin_path, #package_install_path, #project_path, #releases_path, #shared_path, #tmp_path, #unset_envrc_file
Methods inherited from Worker::Base
#dry_run?, #force?, #initialize, #linux?, #method_missing, #osx?, #packages, #run, #target_full_name, #target_major_version, #target_name, #target_patch_level, #target_version
Methods included from Parameters::Application
#env_name, #logrotate_count, #monitor_itself?, #monitorable?
Methods included from Parameters::Base
Methods included from Parameters::Project
#monitor_defined?, #process_monitor_via
Methods included from Parameters::General
Methods included from Helpers::Utils
#assure, #assure_dirs, #assure_symlink, #capture, #check_pass?, #chmod, #cp, #directory?, #exists?, #file?, #hardware_name, #host, #hostname, #ln, #match?, #md5_for, #md5_for_dir, #md5_for_file, #md5_matched?, #mkdir, #mv, #now, #os_name, #os_release, #readlink, #render_template, #revision_match?, #rm, #rmdir, #sudo, #symlink?, #touch, #truncate, #upload_by_template, #url_exists?, #user_home
Methods included from Helpers::Configuration
#ask, #fetch, #find_template_file, #load_configuration_file, #primary, #release_roles, #role, #roles, #server, #set, #set_default, #syntax_error?
Constructor Details
This class inherits a constructor from Luban::Deployment::Worker::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Luban::Deployment::Worker::Base
Instance Method Details
#default_source_path ⇒ Object
7 8 9 |
# File 'lib/luban/deployment/cli/application/configurator.rb', line 7 def default_source_path task.opts.default_source_path end |
#default_source_template_path ⇒ Object
11 12 13 |
# File 'lib/luban/deployment/cli/application/configurator.rb', line 11 def default_source_template_path task.opts.default_source_template_path end |
#init_source ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/luban/deployment/cli/application/configurator.rb', line 15 def init_source if directory?(default_source_path) puts " Skipped! ALREADY initialized #{application_name} default source" else puts " Initializing #{application_name} default source" cp('-r', default_source_template_path, default_source_path) end end |