Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix a few typos
Browse files Browse the repository at this point in the history
remore committed Jul 13, 2018
1 parent d33bfc6 commit f273f0b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/actions-ruby.md
Original file line number Diff line number Diff line change
@@ -43,10 +43,10 @@ Ruby actions always consume a Hash and return a Hash.
The entry method for the action is `main` by default but may be specified explicitly
when creating the action with the `wsk` CLI using `--main`, as with any other action type.

You can create an OpenWhisk action called `helloRuby` from this function as follows:
You can create an OpenWhisk action called `hello_ruby` from this function as follows:

```
wsk action create helloRuby hello.rb
wsk action create hello_ruby hello.rb
```

The CLI automatically infers the type of the action from the source file extension.
@@ -55,7 +55,7 @@ For `.rb` source files, the action runs using a Ruby 2.5 runtime.
Action invocation is the same for Ruby actions as it is for [any other action](actions.md#the-basics).

```
wsk action invoke --result helloRuby --param name World
wsk action invoke --result hello_ruby --param name World
```

```json
@@ -66,7 +66,7 @@ wsk action invoke --result helloRuby --param name World

Find out more about parameters in the [Working with parameters](./parameters.md) section.

### Packaging Ruby actions in zip files
## Packaging Ruby actions in zip files

You can package a Ruby action along with other files and dependent packages in a zip file.
The filename of the source file containing the entry point (e.g., `main`) must be `main.rb`.
@@ -80,8 +80,8 @@ zip -r hello_ruby.zip main.rb helper.rb
and then create the action:

```bash
wsk action create helloRuby --kind ruby:2.5 hello_ruby.zip
wsk action create hello_ruby --kind ruby:2.5 hello_ruby.zip
```

A few Ruby gems such as `mechanize` and `jwt` are available in addition to the default and bundled gems.
You can use arbitrary gem so long as you use zipped actions to package all the dependencies.
You can use arbitrary gems so long as you use zipped actions to package all the dependencies.

0 comments on commit f273f0b

Please sign in to comment.