Sha256: f49b826cf8aea4d22ebbdf2164c4b989a36ee6b67cd0ea68f493f68e19c0fd85
Contents?: true
Size: 1.29 KB
Versions: 8
Compression:
Stored size: 1.29 KB
Contents
$LAMBY_INSTALLER_NAME = 'rest' load 'lamby/templates/shared.rb' say '==> Running Lamby API Gateway (REST API) installer...' say 'Copying files...' copy_file tpl_file('app.rb'), app_file('app.rb') copy_file tpl_file('template.yaml'), app_file('template.yaml') gsub_file app_file('template.yaml'), /APPNAMEHERE/, appname copy_file tpl_file('Dockerfile'), app_file('Dockerfile') copy_file tpl_file('Dockerfile-build'), app_file('Dockerfile-build') copy_file tpl_file('docker-compose.yml'), app_file('docker-compose.yml') gsub_file app_file('docker-compose.yml'), /APPNAMEHERE/, appname.downcase say 'Adding to .gitignore...' FileUtils.touch app_file('.gitignore') append_to_file app_file('.gitignore'), <<~GITIGNORE # Lamby /.aws-sam GITIGNORE say 'Creating ./bin files for build and deploy...' copy_file tpl_file('_build'), app_file('bin/_build') gsub_file app_file('bin/_build'), /APPNAMEHERE/, appname.downcase chmod app_file('bin/_build'), 0755 copy_file tpl_file('deploy'), app_file('bin/deploy') gsub_file app_file('bin/deploy'), /APPNAMEHERE/, appname.downcase chmod app_file('bin/deploy'), 0755 copy_file tpl_file('_deploy'), app_file('bin/_deploy') gsub_file app_file('bin/_deploy'), /APPNAMEHERE/, appname.downcase chmod app_file('bin/_deploy'), 0755 say 'Welcome to AWS Lambda and Rails 🎉', :green
Version data entries
8 entries across 8 versions & 1 rubygems