Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions commands/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ const (
SWIFT_EXT = ".swift"
ZIP_EXT = ".zip"
PHP_EXT = ".php"
RUBY_EXT = ".rb"
NODE_JS = "nodejs"
PYTHON = "python"
JAVA = "java"
SWIFT = "swift"
PHP = "php"
RUBY = "ruby"
DEFAULT = "default"
BLACKBOX = "blackbox"
SEQUENCE = "sequence"
Expand Down Expand Up @@ -623,6 +625,8 @@ func getExec(args []string, params ActionFlags) (*whisk.Exec, error) {
exec.Kind = fmt.Sprintf("%s:%s", JAVA, DEFAULT)
} else if ext == PHP_EXT {
exec.Kind = fmt.Sprintf("%s:%s", PHP, DEFAULT)
} else if ext == RUBY_EXT {
exec.Kind = fmt.Sprintf("%s:%s", RUBY, DEFAULT)
} else {
if ext == ZIP_EXT {
return nil, zipKindError()
Expand Down Expand Up @@ -664,6 +668,8 @@ func getKindExtension(runtime string) (extension string) {
fallthrough
case PHP:
extension = fmt.Sprintf(".%s", runtime)
case RUBY:
extension = RUBY_EXT
}

return extension
Expand Down