Method: Tmuxinator::Project#validate_options

Defined in:
lib/tmuxinator/project.rb

#validate_optionsObject



102
103
104
105
106
107
108
109
110
# File 'lib/tmuxinator/project.rb', line 102

def validate_options
  if @force_attach && @force_detach
    raise "Cannot force_attach and force_detach at the same time"
  end

  if append? && !tmux_has_session?(name)
    raise "Cannot append to a session that does not exist"
  end
end