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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -30
  3. data/exe/pulumi-language-ruby +7 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 375f336d9cade8cef9c164063865cb9827defaa2cc1cade275bf5469f7fbe794
4
- data.tar.gz: '0396c8b1c1ff058acdfbc38f51332b33ae80b37ccda46d79f833d1e4a1ef6646'
3
+ metadata.gz: c4020b5a7ad3338e9e40f1c79bff178395ea7de9c4460b8bb1417739c86a75f5
4
+ data.tar.gz: 94f443e93c5aa500c6809914eebe6f234951953fab825c38462e0f32bb4722fd
5
5
  SHA512:
6
- metadata.gz: 53cdee4c9814e252442453547a3ab55f7d6f1aa522a2ce7612d20c9449748696ce7a20152253e83c23821da0b5b4b770c9b2c6efeeb752a6b597a3b3dbae113b
7
- data.tar.gz: 769610f14317e7fc7a5e0373d419f2045acb3148cfab9eb24de2d0cb143f0aa252c8a04947888662b871989f3b0774d8aee7d413d5cd79cacaf23488073156ff
6
+ metadata.gz: 6cc4e2d83939d0184edadc93036ec312f04410b35fa7de699703cdd64af9b135961fdda90e19ce23a0d530e9be1ab733223d513e2d19c4c33cc924a53f17074c
7
+ data.tar.gz: 7741fca99949eac452a5fb6d0b863a992ead2a00d64f091875316d5f6c60efd9fc715f53a8a53bc5e2be2801b9264d524da554781f14551cb0796cc62d12857a
data/README.md CHANGED
@@ -1,39 +1,26 @@
1
- # Pulumi::Language::Ruby
1
+ # pulumi-language-ruby
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
3
+ **Ruby runtime for Pulumi** allows running Pulumi programs written in Ruby using the Pulumi CLI.
4
4
 
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/pulumi/language/ruby`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- ## Installation
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
- Install the gem and add to the application's Gemfile by executing:
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
- ## Usage
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
- TODO: Write usage instructions here
16
+ ---
26
17
 
27
- ## Development
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
- ## License
20
+ This repository contains the language runtime itself. You can install it system-wide for testing:
38
21
 
39
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
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/
@@ -12,7 +12,13 @@ end
12
12
  require 'grpc'
13
13
  require_relative '../lib/ruby_pulumi/language_host'
14
14
 
15
- server = GRPC::RpcServer.new
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulumi-language-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petris Fernandes