aws_clim 1.0.8 → 1.0.9

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: b1a119e1cd9782989355619ff7c5049229b89ed197d76510202cfd53ae7a611d
4
- data.tar.gz: '0561108c78665b40b1a50e7f343bdcf785146812e9c5eb1b2189bb26ade0e7f6'
3
+ metadata.gz: 1aa25c093256eba1d7b758bc4911266c5725085401bdf9c8f87db08ad59d9d07
4
+ data.tar.gz: 8049a22e1d7297059dd44fc7484c7be6ec635c21cb4e977d029623b9594d4d41
5
5
  SHA512:
6
- metadata.gz: 41a01cabb698d9f9aa229158d5b4ed5dd9bf05f3a14a6ccd5777b4965482141ebde59feb24f761409f8c271e90cb673dd5baf3213704c08069d941bb6d37d33b
7
- data.tar.gz: e4825e9b0ca72f3ce39132bfd86068d285f9f1a25726a8841cf27f6615729a47ae605b6ccb5cbf4026d41575d07a4d1aba8b7c4550454ee8ede706bbf615cf22
6
+ metadata.gz: 9bc65ab9c4be6c94c47ac7d1ce2e63711b05024fa8b069a7bde2cd5be32f87d82c9a7b616686a5c1a2929a4b6863aa3175c042d721ae09e5520bf66345a2e3d3
7
+ data.tar.gz: 25c0f83b975be4aec94f8c1c22fcabaacc095d575fb3b56b4819d05dd25d8297072d230ecce9d4e8f5c10b293c8d1e5193175869a51895a14fb49612c63bd5b6
@@ -1,3 +1,3 @@
1
1
  module AwsClim
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
3
3
  end
data/lib/aws_clim.rb CHANGED
@@ -338,6 +338,17 @@ class AwsClim
338
338
  execute(service_name, ps)
339
339
  end
340
340
 
341
+ define_method "#{service_name.gsub('-', '_')}!" do |*ps|
342
+ result = execute(service_name, ps)
343
+
344
+ if result.error?
345
+ puts result.data
346
+ exit 1
347
+ end
348
+
349
+ result
350
+ end
351
+
341
352
  define_method "#{service_name.gsub('-', '_')}_help" do
342
353
  execute(service_name, 'help').data
343
354
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws_clim
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew S Aguiar