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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88e92ccddb24107d44c95d1a53c051c335f9b01d
4
- data.tar.gz: 8e091fd00db3b0dd72815236e5666a3ba1765c29
3
+ metadata.gz: 175bb9f16927fc7ec6e2f2e57ecbce800e69c80f
4
+ data.tar.gz: d7270b8520c268b22fd3aa1e4ac19dd6093858ca
5
5
  SHA512:
6
- metadata.gz: f23b84f453ae9ed1f370b76eb2cc3fc1b67d3ad95cfb5c5b5c42aba08383f89344c22495f15fac5c6ec647c55ec262d2908f82f31351aec2dcb9cf920f51af9c
7
- data.tar.gz: 8df333227e73af3086d1932ba8268f9e57c0d126055396dfbeb55e3498b7db9fe5322378e04604668e512d7fe152e21a2793bba57fafa9507d265f506319ffd4
6
+ metadata.gz: 2cf58e43d74b102f95020ce46d7a90e0b780acaaa45828d4610ebaaa70c1814d05395e8de51d532eca75a15c73b6fa61b84d200e82b24c6f83ab1999504ea445
7
+ data.tar.gz: 4f377bc362182689693fea1ea140febc0a1b32800ef7143ab952e6462c3ea3fc37be6a593dcc444312fcf1a9a7944058ff45b97073e37e0c357b78b6d235f9ca
@@ -11,8 +11,17 @@ module Tck
11
11
  File.dirname(__FILE__)
12
12
  end
13
13
 
14
- desc "list", "List currently used functions in AWS Lambda."
15
- def list
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)
@@ -1,5 +1,5 @@
1
1
  module Tck
2
2
  module Lambdas
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tck-lambdas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Garcia Samblas