Bundler is a package manager for runy. It is the primary way to install ruby packages (known as gems) for ruby.
You need to create a Gemfile and define your gems in that file.
source "https://rubygems.org"
gem 'sinatra'
gem 'rake'
gem 'pry'
gem 'puma'
gem 'activerecord'
Then you need to run the bundle install
command
This will install the gems on the system globally (unlike nodejs which install packages in place in a folder called node_modules)
A Gemfile.lock will be created to lock down the gem versions used in this project.
We have to use bundle exec
to tell future ruby scripts to use the gems we installed. This is the way we set context.
Sinatra is a micro web-framework for ruby to build web-apps.
Its great for mock or development servers or for very simple projects.
You can create a web-server in a single file.
We can run the web server by executing the following commands:
bundle install
bundle exec ruby server.rb
All of the code for our server is stored in the server.rb
file.
Terraform Provider resources utilize CRUD.
CRUD stands for Create, Read Update, and Delete
https://en.wikipedia.org/wiki/Create,_read,_update_and_delete