class Object
Public Instance Methods
_all_stages_empty?()
click to toggle source
# File lib/mina/multistage.rb, line 14 def _all_stages_empty? !fetch(:all_stages, nil) end
_argument_included_in_stages?(arg)
click to toggle source
# File lib/mina/multistage.rb, line 30 def _argument_included_in_stages?(arg) fetch(:all_stages).include?(arg) end
_default_stage()
click to toggle source
# File lib/mina/multistage.rb, line 2 def _default_stage fetch(:default_stage, 'staging') end
_default_stages()
click to toggle source
# File lib/mina/multistage.rb, line 6 def _default_stages fetch(:stages, %w(staging production)) end
_file_for_stage(stage_name)
click to toggle source
# File lib/mina/multistage.rb, line 18 def _file_for_stage(stage_name) File.join(_stages_dir, "#{stage_name}.rb") end
_get_all_stages()
click to toggle source
# File lib/mina/multistage.rb, line 26 def _get_all_stages Dir["#{_stages_dir}/*.rb"].reduce([]) { |all_stages, file| all_stages << File.basename(file, '.rb') } end
_stage_file_exists?(stage_name)
click to toggle source
# File lib/mina/multistage.rb, line 22 def _stage_file_exists?(stage_name) File.exists?(File.expand_path(_file_for_stage(stage_name))) end
_stages_dir()
click to toggle source
# File lib/mina/multistage.rb, line 10 def _stages_dir fetch(:stages_dir, 'config/deploy') end