pulumi-language-ruby 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +17 -30
- data/exe/pulumi-language-ruby +7 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c4020b5a7ad3338e9e40f1c79bff178395ea7de9c4460b8bb1417739c86a75f5
|
|
4
|
+
data.tar.gz: 94f443e93c5aa500c6809914eebe6f234951953fab825c38462e0f32bb4722fd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6cc4e2d83939d0184edadc93036ec312f04410b35fa7de699703cdd64af9b135961fdda90e19ce23a0d530e9be1ab733223d513e2d19c4c33cc924a53f17074c
|
|
7
|
+
data.tar.gz: 7741fca99949eac452a5fb6d0b863a992ead2a00d64f091875316d5f6c60efd9fc715f53a8a53bc5e2be2801b9264d524da554781f14551cb0796cc62d12857a
|
data/README.md
CHANGED
|
@@ -1,39 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# pulumi-language-ruby
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Ruby runtime for Pulumi** – allows running Pulumi programs written in Ruby using the Pulumi CLI.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This project implements a custom Pulumi language runtime for Ruby. It communicates with the Pulumi engine via gRPC and enables you to write infrastructure-as-code programs in pure Ruby.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
|
7
|
+
---
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
If bundler is not being used to manage dependencies, install the gem by executing:
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
|
|
21
|
-
```
|
|
9
|
+
## Features
|
|
22
10
|
|
|
23
|
-
|
|
11
|
+
- Run Ruby Pulumi programs using the Pulumi CLI.
|
|
12
|
+
- Vendored Pulumi proto definitions for gRPC communication.
|
|
13
|
+
- Supports resource registration via a Ruby SDK.
|
|
14
|
+
- Works with any Pulumi-supported provider, e.g., AWS, Azure, GCP.
|
|
24
15
|
|
|
25
|
-
|
|
16
|
+
---
|
|
26
17
|
|
|
27
|
-
##
|
|
28
|
-
|
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
30
|
-
|
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
32
|
-
|
|
33
|
-
## Contributing
|
|
34
|
-
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/pulumi-language-ruby.
|
|
18
|
+
## Installation
|
|
36
19
|
|
|
37
|
-
|
|
20
|
+
This repository contains the language runtime itself. You can install it system-wide for testing:
|
|
38
21
|
|
|
39
|
-
|
|
22
|
+
```bash
|
|
23
|
+
git clone https://github.com/<your-org>/pulumi-language-ruby.git
|
|
24
|
+
cd pulumi-language-ruby
|
|
25
|
+
chmod +x bin/pulumi-language-ruby
|
|
26
|
+
sudo cp bin/pulumi-language-ruby /usr/local/bin/
|
data/exe/pulumi-language-ruby
CHANGED
|
@@ -12,7 +12,13 @@ end
|
|
|
12
12
|
require 'grpc'
|
|
13
13
|
require_relative '../lib/ruby_pulumi/language_host'
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
pool_size = 15
|
|
16
|
+
max_waiting_requests = 30
|
|
17
|
+
|
|
18
|
+
server = GRPC::RpcServer.new(
|
|
19
|
+
pool_size:,
|
|
20
|
+
max_waiting_requests:
|
|
21
|
+
)
|
|
16
22
|
port = server.add_http2_port('127.0.0.1:0', :this_port_is_insecure)
|
|
17
23
|
|
|
18
24
|
server.handle(RubyPulumi::LanguageHost.new)
|