Module: FaaStRuby::Command::Project

Defined in:
lib/faastruby/cli/commands/project/new.rb,
lib/faastruby/cli/commands/project/down.rb,
lib/faastruby/cli/commands/project/deploy.rb,
lib/faastruby/cli/commands/project/base_command.rb

Defined Under Namespace

Classes: Deploy, Down, New, ProjectBaseCommand

Constant Summary collapse

DEFAULT_FUNCTIONS =
{
  'root' => "local:#{FaaStRuby::Template.gem_template_path_for('web-root', runtime: 'ruby')}",
  'catch-all' => "local:#{FaaStRuby::Template.gem_template_path_for('web-404', runtime: 'ruby')}",
}
PROJECT_YAML_FILE =
'project.yml'
PROJECT_SECRETS_FILE =
'secrets.yml'

Class Method Summary collapse

Class Method Details

.templates_for(kind) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/faastruby/cli/commands/project/new.rb', line 12

def self.templates_for(kind)
  t = {
    'root' => "local:#{FaaStRuby::Template.gem_template_path_for("#{kind}-root", runtime: 'ruby')}",
    'catch-all' => "local:#{FaaStRuby::Template.gem_template_path_for("#{kind}-404", runtime: 'ruby')}"
  }
  return t
end