lib/faastruby/cli/commands/project/new.rb in faastruby-0.5.26 vs lib/faastruby/cli/commands/project/new.rb in faastruby-0.5.27

- old
+ new

@@ -102,14 +102,10 @@ end def create_config File.write("#{@base_dir}/#{PROJECT_YAML_FILE}", default_project_file) puts "+ f #{@base_dir}/#{PROJECT_YAML_FILE}".green - if @options['tmux'] - File.write("#{@base_dir}/tmuxinator.yml", tmuxinator_config) - puts "+ f #{@base_dir}/tmuxinator.yml".green - end File.write("#{@base_dir}/#{PROJECT_SECRETS_FILE}", default_secrets_file) puts "+ f #{@base_dir}/#{PROJECT_SECRETS_FILE}".green end def default_public_config @@ -177,35 +173,9 @@ ## non-existing functions and send them to another function. ## This is useful for setting custom 404 pages, for example. ## Defaults to 'catch-all'. # catch_all: catch-all ) - end - - def tmuxinator_config - { - "name" => @project_name, - "root" => ".", - "startup_window" => "server", - "windows" => [{ - "server" => { - "layout" => "main-horizontal", - "panes" => [ - [ - "tmux set -g mouse on", - "tmux set -g history-limit 30000", - "clear", - "faastruby server" - ], - [ - "tmux select-pane -t 0.1", - "clear" - ] - ] - } - } - ] - }.to_yaml end def dir_exists? return false unless File.directory?(@base_dir) FaaStRuby::CLI.error("Error: Directory '#{@project_name}' already exists. Aborting.")