tfrb 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7007bbfc991d6e9b8ee14d9e0a7dc673338b589c1da0afd61c78859c6da2f1ff
4
- data.tar.gz: ed13eab16dfdbfa573d9c9785a46c9a1d14b90ac3c6b0cc222777397ad40e240
3
+ metadata.gz: 94fadcc73df68d2c1cc7ca1a73e54fdd30b4bcdd21fde4f055305e347c4e9c8e
4
+ data.tar.gz: e29d437a63c05c5175945ce1f1864d84c09564fa6cfe88181d5e23e214031419
5
5
  SHA512:
6
- metadata.gz: 2ff08dde3f046f973a452a8b1752f5fcb9606bf06e2273dc4635def287bce7af92a8451d8d1714245c188a0c28b14e3675eee2fc16df1161c85b3e39340d1073
7
- data.tar.gz: 6e9112522fe46f57fc4c27f6c4e7ee44aa228695a69dc628bded44b301a88869561b3ffe4a372200083048f997806e5853ff40c3e846c76cc5951bfab63397c3
6
+ metadata.gz: 6e948482c26f556ed1a7b31746cf4e48c0fcc662c91d0b28294d069c33b79ac7c30bc626387284eb3c347ef0129369848275e01d3c7d2092cd0ed368a2b6ae0e
7
+ data.tar.gz: 56f9a33f7433e0eb3b43a53eb82eee8f7becfb51ef5ea81f13445ce20b19f93b2d1031cf74020fdc9db6949b3a0f4a4d6d6644d6d8002ba1a7c32ce676930023
data/README.md CHANGED
@@ -20,7 +20,7 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- $ tfrm --help
23
+ $ tfrb --help
24
24
 
25
25
  ## Configuration
26
26
 
@@ -136,9 +136,9 @@ class Tfrb::Base
136
136
  tf_plan.error!
137
137
  end
138
138
 
139
- def apply!
139
+ def apply!(parallelism = 1)
140
140
  printf "\033[1;32mApplying plan...\033[0m\n"
141
- tf_apply = Mixlib::ShellOut.new('terraform', 'apply', '-auto-approve', 'plan.cache', shell_opts)
141
+ tf_apply = Mixlib::ShellOut.new('terraform', 'apply', "-parallelism=#{parallelism}", '-auto-approve', 'plan.cache', shell_opts)
142
142
  tf_apply.run_command
143
143
  tf_apply.error!
144
144
  plan_cache = temp_path('plan.cache')
@@ -28,9 +28,10 @@ class Tfrb::CLI < Thor
28
28
 
29
29
  desc 'apply', 'Runs a terraform apply'
30
30
  method_option :skip_import, aliases: '-s', type: :boolean, desc: 'Skip automatic terraform import', default: false
31
+ method_option :parallelism, aliases: '-p', type: :numeric, desc: 'Number of concurrent operations', default: 1
31
32
  def apply
32
33
  tfrb = load_tfrb(options[:skip_import])
33
- tfrb.apply!
34
+ tfrb.apply!(options[:parallelism])
34
35
  tfrb.clean!
35
36
  end
36
37
 
@@ -1,3 +1,3 @@
1
1
  module Tfrb
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tfrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - 'Matt Kasa
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2019-05-08 00:00:00.000000000 Z
13
+ date: 2019-06-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler