faastruby 0.4.9 → 0.4.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/README.md +10 -22
- data/exe/faastruby-server +1 -1
- data/lib/faastruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 102f45efaac0660cbc635d8e0c7f016b956faadd76469b7269061e4f671b9ccc
|
4
|
+
data.tar.gz: 515f44f1483b17fa84470e515a5d4006f9c8470c935b2cbd7967f33f4ce4855a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0bda92002e8c4fbd7255a46288d045db8c0909530c258ed9ba4e58372d4505f32a8d3494251f2199ef7d1a112a679eba7d59b967a5222555973c3efc2cd2c30
|
7
|
+
data.tar.gz: bd2c81c020663dfc1e4b5b5ed490ed8b81fdfd97bbd55a0669036a3a93c728b8fdf6ef592c1598f0b7b4c512f93c6ba003b5a97052c555ebda1a82e02f718a7d
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -8,28 +8,22 @@ CLI tool for managing workspaces and functions hosted at [FaaStRuby](https://faa
|
|
8
8
|
## What is FaaStRuby?
|
9
9
|
FaaStRuby is a serverless platform built for Ruby developers.
|
10
10
|
|
11
|
-
* [Tutorial](https://faastruby.io/
|
11
|
+
* [Tutorial](https://faastruby.io/getting-started)
|
12
12
|
|
13
13
|
## Try it
|
14
14
|
|
15
15
|
1. Install the gem:
|
16
16
|
|
17
17
|
```
|
18
|
-
|
18
|
+
~$ gem install faastruby
|
19
19
|
```
|
20
20
|
|
21
|
-
2. Create a
|
21
|
+
2. Create a function and deploy it to a workspace:
|
22
22
|
|
23
23
|
```
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
3. Create a function and deploy it to your workspace:
|
28
|
-
|
29
|
-
```
|
30
|
-
$ faastruby new my-first-function
|
31
|
-
$ cd my-first-function
|
32
|
-
$ faastruby deploy-to awesome-prod
|
24
|
+
~$ faastruby new hello-world
|
25
|
+
~$ cd hello-world
|
26
|
+
~/hello-world$ faastruby deploy-to awesome-prod
|
33
27
|
◐ Running tests... Passed!
|
34
28
|
...
|
35
29
|
|
@@ -38,20 +32,14 @@ Finished in 0.00563 seconds (files took 0.15076 seconds to load)
|
|
38
32
|
|
39
33
|
◐ Building package... Done!
|
40
34
|
◐ Deploying to workspace 'awesome-prod'... Done!
|
35
|
+
Endpoint: https://api.tor1.faastruby.io/awesome-prod/hello-world
|
41
36
|
```
|
42
37
|
|
43
|
-
|
44
|
-
|
45
|
-
```
|
46
|
-
$ faastruby run awesome-prod --json '{"name":"Ruby"}'
|
47
|
-
Hello, Ruby!
|
48
|
-
```
|
49
|
-
|
50
|
-
You can also generate a CURL command:
|
38
|
+
3. Run it:
|
51
39
|
|
52
40
|
```
|
53
|
-
$ faastruby
|
54
|
-
|
41
|
+
~/hello-world$ curl https://api.tor1.faastruby.io/awesome-prod/hello-world
|
42
|
+
Hello, World!
|
55
43
|
```
|
56
44
|
|
57
45
|
Build lots of functions and share them with fellow Ruby devs!
|
data/exe/faastruby-server
CHANGED
@@ -19,6 +19,7 @@ when '-b', '-o'
|
|
19
19
|
end
|
20
20
|
set :server, %w[puma]
|
21
21
|
set :show_exceptions, true
|
22
|
+
set :run, true
|
22
23
|
|
23
24
|
register Sinatra::MultiRoute
|
24
25
|
route :get, :post, :put, :patch, :delete, '/:workspace_name/:function_name' do
|
@@ -71,4 +72,3 @@ end
|
|
71
72
|
def self.run?
|
72
73
|
true
|
73
74
|
end
|
74
|
-
|
data/lib/faastruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faastruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paulo Arruda
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|