module Luban::Deployment::Parameters::Application

Constants

DefaultLogrotateInterval
DefaultLogrotateMaxAge

Public Instance Methods

dockerize() click to toggle source
# File lib/luban/deployment/parameters.rb, line 172
def dockerize
  unless dockerized?
    singleton_class.send(:prepend, Luban::Deployment::Application::Dockerable)
    set :dockerized, true
    skip_promptless_authen true
  end
end
dockerized?() click to toggle source
# File lib/luban/deployment/parameters.rb, line 180
def dockerized?; fetch :dockerized; end
env_name() click to toggle source
# File lib/luban/deployment/parameters.rb, line 168
def env_name
  @env_name ||= "#{stage}.#{project}/#{application}"
end
logrotate_count() click to toggle source
# File lib/luban/deployment/parameters.rb, line 190
def logrotate_count
  logrotate_max_age * 24 * (60 / logrotate_interval)
end
monitor_itself?() click to toggle source
# File lib/luban/deployment/parameters.rb, line 182
def monitor_itself?
  env_name == process_monitor[:env]
end
monitorable?() click to toggle source
# File lib/luban/deployment/parameters.rb, line 186
def monitorable?
  monitor_defined? and !monitor_itself?
end

Protected Instance Methods

set_default_for_application_config_finder() click to toggle source
# File lib/luban/deployment/parameters.rb, line 196
def set_default_for_application_config_finder
  config_finder[:application] ||= 
    Luban::Deployment::Helpers::Configuration::Finder.application(self)
end
validate_for_application() click to toggle source
# File lib/luban/deployment/parameters.rb, line 201
def validate_for_application
  if application.nil?
    abort "Aborted! Please specify the application name - application 'app name'"
  end
end