Here is a sample ruby project use case from the [OpenWhisk Ruby runtime launch 
blogpost](https://medium.com/openwhisk/ruby-goes-serverless-apache-openwhisk-adds-native-support-for-ruby-7134faee14e#5d97).

```bash
$ ls .** **
.bundle/config
.git/HEAD
.git/config
.git/description
.git/hooks/applypatch-msg.sample
.git/hooks/commit-msg.sample
.git/hooks/fsmonitor-watchman.sample
.git/hooks/post-update.sample
.git/hooks/pre-applypatch.sample
.git/hooks/pre-commit.sample
.git/hooks/pre-push.sample
.git/hooks/pre-rebase.sample
.git/hooks/pre-receive.sample
.git/hooks/prepare-commit-msg.sample
.git/hooks/update.sample
.git/info/exclude
Gemfile
Gemfile.lock
bundle/bundler/setup.rb
bundle/ruby/2.5.0/cache/betterlorem-0.1.2.gem
bundle/ruby/2.5.0/gems/betterlorem-0.1.2/doc/BetterLorem.html
bundle/ruby/2.5.0/gems/betterlorem-0.1.2/doc/created.rid
bundle/ruby/2.5.0/gems/betterlorem-0.1.2/doc/index.html
bundle/ruby/2.5.0/gems/betterlorem-0.1.2/doc/lorem_txt.html
bundle/ruby/2.5.0/gems/betterlorem-0.1.2/doc/rdoc.css
bundle/ruby/2.5.0/gems/betterlorem-0.1.2/doc/table_of_contents.html
bundle/ruby/2.5.0/gems/betterlorem-0.1.2/lib/betterlorem.rb
bundle/ruby/2.5.0/gems/betterlorem-0.1.2/lib/lorem.txt
bundle/ruby/2.5.0/gems/betterlorem-0.1.2/spec/betterlorem_spec.rb
bundle/ruby/2.5.0/gems/betterlorem-0.1.2/spec/spec_helper.rb
bundle/ruby/2.5.0/specifications/betterlorem-0.1.2.gemspec
main.rb
```

I'd love to see how we can represent this. 

-  First off we don't need all the .git stuff, we won't need the documentation 
or specs for the gems.
- Secondly we need to specify that `main.rb` is where our action is going to be 
executed. 
- As a sidenote, [these 
files](https://github.com/github/gitignore/blob/master/Ruby.gitignore) will 
probably often need excluding.

I looked at [package.json's files 
convention](https://docs.npmjs.com/files/package.json#files) for some 
inspiration and came up with this representation:

```
packages:
    myPackage:
        actions:
            lipsum: 
                path: .
                runtime: ruby:2.5
                main: main.rb
                exclude:
                    - .git/*
                    - bundle/ruby/*/gems/*/spec/
                    - bundle/**/docs/
```


[ Full content available at: 
https://github.com/apache/incubator-openwhisk-wskdeploy/issues/969 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to