diff options
author | Andrei Belov <defan@nginx.com> | 2018-04-02 15:48:33 +0300 |
---|---|---|
committer | Andrei Belov <defan@nginx.com> | 2018-04-02 15:48:33 +0300 |
commit | aa8f2c3295cbf7e1b8e134e70b135e07c35f88e9 (patch) | |
tree | 73a2802ee4a7758f225a5ebe3fdde96565e814c4 /pkg/rpm/rpmbuild/SOURCES/unit.example-ruby-app | |
parent | 2028f3a04be9836ff0f904a487f05bcff75d528d (diff) | |
download | unit-aa8f2c3295cbf7e1b8e134e70b135e07c35f88e9.tar.gz unit-aa8f2c3295cbf7e1b8e134e70b135e07c35f88e9.tar.bz2 |
Added Ruby packaging support.
Diffstat (limited to 'pkg/rpm/rpmbuild/SOURCES/unit.example-ruby-app')
-rw-r--r-- | pkg/rpm/rpmbuild/SOURCES/unit.example-ruby-app | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/rpm/rpmbuild/SOURCES/unit.example-ruby-app b/pkg/rpm/rpmbuild/SOURCES/unit.example-ruby-app new file mode 100644 index 00000000..69b015b7 --- /dev/null +++ b/pkg/rpm/rpmbuild/SOURCES/unit.example-ruby-app @@ -0,0 +1,7 @@ +app = Proc.new do |env| + ['200', { + 'Content-Type' => 'text/plain', + }, ["Hello from Unit running with Ruby #{RUBY_VERSION}!\n\n"]] +end + +run app |