aws_clim 1.0.6 → 1.0.8

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
  SHA256:
3
- metadata.gz: 1c13ac2c2d636f41d9e5d4c8ac35ca89298221694d67f4127c2c0a6808450362
4
- data.tar.gz: 56ba4d8fdaf5b8c79b90ee0d328f3149ecf355949bdf29199cf0bda00083d6ae
3
+ metadata.gz: b1a119e1cd9782989355619ff7c5049229b89ed197d76510202cfd53ae7a611d
4
+ data.tar.gz: '0561108c78665b40b1a50e7f343bdcf785146812e9c5eb1b2189bb26ade0e7f6'
5
5
  SHA512:
6
- metadata.gz: 002a4b8986d6eb64a8fff756750db61aa448ce82110b6fe0c569bc3d4b3faf3106baf21cd8f1b1d93a62a4d0de97a7085b76fca2a82040fb3b677bc9ad666f4d
7
- data.tar.gz: 2b11fb33e5607585806445e415252f3ea18ba9b618d1ffa5d9e66b103b5ff176f51ba8028b45b2a91f8f60cf15fe22d2a0b842b91644206654882830fdc4eaed
6
+ metadata.gz: 41a01cabb698d9f9aa229158d5b4ed5dd9bf05f3a14a6ccd5777b4965482141ebde59feb24f761409f8c271e90cb673dd5baf3213704c08069d941bb6d37d33b
7
+ data.tar.gz: e4825e9b0ca72f3ce39132bfd86068d285f9f1a25726a8841cf27f6615729a47ae605b6ccb5cbf4026d41575d07a4d1aba8b7c4550454ee8ede706bbf615cf22
data/README.md CHANGED
@@ -65,6 +65,10 @@ result.error?
65
65
  result.data
66
66
  ```
67
67
 
68
+ ## Warning
69
+
70
+ As AwsClim rely on aws cli executable, some services can be unavailable depending of your version.
71
+
68
72
  ## License
69
73
 
70
74
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,3 +1,3 @@
1
1
  module AwsClim
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.8"
3
3
  end
data/lib/aws_clim.rb CHANGED
@@ -8,7 +8,8 @@ class AwsClim
8
8
  @global_options = global_options
9
9
  end
10
10
 
11
- %w(
11
+ # https://docs.aws.amazon.com/cli/latest/reference/
12
+ SERVICES = %w(
12
13
  accessanalyzer
13
14
  account
14
15
  acm
@@ -326,7 +327,13 @@ class AwsClim
326
327
  workspaces
327
328
  workspaces-web
328
329
  xray
329
- ).each do |service_name|
330
+ )
331
+
332
+ def self.services
333
+ SERVICES
334
+ end
335
+
336
+ SERVICES.each do |service_name|
330
337
  define_method "#{service_name.gsub('-', '_')}" do |*ps|
331
338
  execute(service_name, ps)
332
339
  end
@@ -371,7 +378,9 @@ class AwsClim
371
378
 
372
379
  def format_option(option)
373
380
  if option.is_a?(Array)
374
- "--#{option[0]}=\"#{option[1]}\""
381
+ name, value = option
382
+
383
+ "--#{name}=\"#{value.gsub('"', '\\"')}\""
375
384
  elsif option.is_a?(Hash)
376
385
  format_options(option.to_a)
377
386
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws_clim
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew S Aguiar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-26 00:00:00.000000000 Z
11
+ date: 2022-10-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: wraps aws cli in a very small and flexible ruby class
14
14
  email: