tck-lambdas 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tck/lambdas/cli.rb +12 -2
- data/lib/tck/lambdas/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 175bb9f16927fc7ec6e2f2e57ecbce800e69c80f
|
4
|
+
data.tar.gz: d7270b8520c268b22fd3aa1e4ac19dd6093858ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cf58e43d74b102f95020ce46d7a90e0b780acaaa45828d4610ebaaa70c1814d05395e8de51d532eca75a15c73b6fa61b84d200e82b24c6f83ab1999504ea445
|
7
|
+
data.tar.gz: 4f377bc362182689693fea1ea140febc0a1b32800ef7143ab952e6462c3ea3fc37be6a593dcc444312fcf1a9a7944058ff45b97073e37e0c357b78b6d235f9ca
|
data/lib/tck/lambdas/cli.rb
CHANGED
@@ -11,8 +11,17 @@ module Tck
|
|
11
11
|
File.dirname(__FILE__)
|
12
12
|
end
|
13
13
|
|
14
|
-
desc "
|
15
|
-
def
|
14
|
+
desc "all", "List all AWS Lambdas currently available in tck-lambdas."
|
15
|
+
def all
|
16
|
+
puts "Available functions in tck-lambdas:"
|
17
|
+
Dir["#{CLI.source_root}/*/source"].map do |dir|
|
18
|
+
puts " - #{dir.match(/lambdas\/(.*)\/source/)[1]}"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
desc "used", "List functions currently used by this project."
|
23
|
+
def used
|
24
|
+
puts "Functions currently used by this project:"
|
16
25
|
if yaml = Tck::Lambdas::AwsFunction.yaml
|
17
26
|
yaml.each do |lambda_name, properties|
|
18
27
|
puts " - #{properties["function-name"]} (cloned from '#{lambda_name}')"
|
@@ -21,6 +30,7 @@ module Tck
|
|
21
30
|
puts "No lambdas found in this directory... :("
|
22
31
|
end
|
23
32
|
end
|
33
|
+
map list: :used
|
24
34
|
|
25
35
|
desc "use NAME", "Use the AWS Lambda function known as NAME at The Cocktail."
|
26
36
|
def use(name)
|
data/lib/tck/lambdas/version.rb
CHANGED